msm: peripheral-loader: Ignore pil_put(NULL|ERR_PTR)

Instead of printing a warning just skip doing anything in
pil_put() if the pointer is NULL or an error pointer. This should
make error paths simpler.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
diff --git a/arch/arm/mach-msm/peripheral-loader.c b/arch/arm/mach-msm/peripheral-loader.c
index 03d6fc2..1969efc 100644
--- a/arch/arm/mach-msm/peripheral-loader.c
+++ b/arch/arm/mach-msm/peripheral-loader.c
@@ -273,10 +273,8 @@
 {
 	struct pil_device *pil_d;
 	struct pil_device *pil = peripheral_handle;
-	if (!pil || IS_ERR(pil)) {
-		WARN(1, "Invalid peripheral handle\n");
+	if (!pil || IS_ERR(pil))
 		return;
-	}
 
 	mutex_lock(&pil->lock);
 	WARN(!pil->count, "%s: Reference count mismatch\n", __func__);