public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/4] [media] s3c-camif: Remove redundant NULL check
@ 2013-04-30  6:16 Sachin Kamat
  2013-04-30  6:16 ` [PATCH 2/4] [media] s3c-camif: Fix incorrect variable type Sachin Kamat
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Sachin Kamat @ 2013-04-30  6:16 UTC (permalink / raw)
  To: linux-media; +Cc: s.nawrocki, sachin.kamat, patches

clk_unprepare checks for NULL pointer. Hence convert IS_ERR_OR_NULL
to IS_ERR only.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
 drivers/media/platform/s3c-camif/camif-core.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/platform/s3c-camif/camif-core.c b/drivers/media/platform/s3c-camif/camif-core.c
index 0d0fab1..2449f13 100644
--- a/drivers/media/platform/s3c-camif/camif-core.c
+++ b/drivers/media/platform/s3c-camif/camif-core.c
@@ -341,7 +341,7 @@ static void camif_clk_put(struct camif_dev *camif)
 	int i;
 
 	for (i = 0; i < CLK_MAX_NUM; i++) {
-		if (IS_ERR_OR_NULL(camif->clock[i]))
+		if (IS_ERR(camif->clock[i]))
 			continue;
 		clk_unprepare(camif->clock[i]);
 		clk_put(camif->clock[i]);
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-05-02  4:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-30  6:16 [PATCH 1/4] [media] s3c-camif: Remove redundant NULL check Sachin Kamat
2013-04-30  6:16 ` [PATCH 2/4] [media] s3c-camif: Fix incorrect variable type Sachin Kamat
2013-04-30  6:16 ` [PATCH 3/4] [media] s3c-camif: Staticize local symbols Sachin Kamat
2013-04-30  6:16 ` [PATCH 4/4] [media] s3c-camif: Use dev_info instead of printk Sachin Kamat
2013-05-01  9:32 ` [PATCH 1/4] [media] s3c-camif: Remove redundant NULL check Sylwester Nawrocki
2013-05-02  4:20   ` Sachin Kamat

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox