public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: android: Clean up else statement from sync_fence_poll()
@ 2014-07-15  3:32 Lucas Tanure
  0 siblings, 0 replies; only message in thread
From: Lucas Tanure @ 2014-07-15  3:32 UTC (permalink / raw)
  To: Greg Kroah-Hartman, John Stultz, devel, linux-kernel

Kernel coding style. Remove useless else statement after return.

Signed-off-by: Lucas Tanure <tanure@linux.com>
---
 drivers/staging/android/sync.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/staging/android/sync.c b/drivers/staging/android/sync.c
index c9a0c2c..e7b2e02 100644
--- a/drivers/staging/android/sync.c
+++ b/drivers/staging/android/sync.c
@@ -555,8 +555,7 @@ static unsigned int sync_fence_poll(struct file *file, poll_table *wait)
 		return POLLIN;
 	else if (status < 0)
 		return POLLERR;
-	else
-		return 0;
+	return 0;
 }
 
 static long sync_fence_ioctl_wait(struct sync_fence *fence, unsigned long arg)
-- 
2.0.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2014-07-15  3:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-15  3:32 [PATCH] staging: android: Clean up else statement from sync_fence_poll() Lucas Tanure

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