All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] staging: media: davinci_vpfe: Rewrite return statement in vpfe_video.c
@ 2013-10-28 21:23 Lisa Nguyen
  2013-10-28 21:23 ` [PATCH 2/2] staging: media: davinci_vpfe: Remove spaces before semicolons Lisa Nguyen
  2013-10-30  7:45 ` [PATCH 1/2] staging: media: davinci_vpfe: Rewrite return statement in vpfe_video.c Prabhakar Lad
  0 siblings, 2 replies; 10+ messages in thread
From: Lisa Nguyen @ 2013-10-28 21:23 UTC (permalink / raw)
  To: m.chehab; +Cc: linux-media

Rewrite the return statement in vpfe_video.c to eliminate the
use of a ternary operator. This will prevent the checkpatch.pl
script from generating a warning saying to remove () from
this particular return statement.

Signed-off-by: Lisa Nguyen <lisa@xenapiadmin.com>
---
 drivers/staging/media/davinci_vpfe/vpfe_video.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/staging/media/davinci_vpfe/vpfe_video.c b/drivers/staging/media/davinci_vpfe/vpfe_video.c
index 24d98a6..49aafe4 100644
--- a/drivers/staging/media/davinci_vpfe/vpfe_video.c
+++ b/drivers/staging/media/davinci_vpfe/vpfe_video.c
@@ -346,7 +346,10 @@ static int vpfe_pipeline_disable(struct vpfe_pipeline *pipe)
 	}
 	mutex_unlock(&mdev->graph_mutex);
 
-	return (ret == 0) ? ret : -ETIMEDOUT ;
+	if (ret == 0)
+		return ret;
+	else
+		return -ETIMEDOUT;
 }
 
 /*
-- 
1.8.1.2


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

end of thread, other threads:[~2013-12-10 15:11 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-28 21:23 [PATCH 1/2] staging: media: davinci_vpfe: Rewrite return statement in vpfe_video.c Lisa Nguyen
2013-10-28 21:23 ` [PATCH 2/2] staging: media: davinci_vpfe: Remove spaces before semicolons Lisa Nguyen
2013-10-30  7:50   ` Prabhakar Lad
2013-12-10 14:04     ` Laurent Pinchart
2013-12-10 14:34       ` Prabhakar Lad
2013-12-10 14:57         ` Lisa Nguyen
2013-12-10 15:04           ` Prabhakar Lad
2013-12-10 15:08             ` Lisa Nguyen
2013-12-10 15:10               ` Prabhakar Lad
2013-10-30  7:45 ` [PATCH 1/2] staging: media: davinci_vpfe: Rewrite return statement in vpfe_video.c Prabhakar Lad

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.