[PATCH] Staging: android: timed_gpio.c: remove else statement after return

From: Murilo Opsfelder Araujo
Date: Mon Jul 28 2014 - 19:12:01 EST


This patch makes checkpatch.pl script happy by fixing the following
warning:

WARNING: else is not generally useful after a break or return

Signed-off-by: Murilo Opsfelder Araujo <mopsfelder@xxxxxxxxx>
---
drivers/staging/android/timed_gpio.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/android/timed_gpio.c b/drivers/staging/android/timed_gpio.c
index 180c209..05cb578 100644
--- a/drivers/staging/android/timed_gpio.c
+++ b/drivers/staging/android/timed_gpio.c
@@ -53,8 +53,9 @@ static int gpio_get_time(struct timed_output_dev *dev)
struct timeval t = ktime_to_timeval(r);

return t.tv_sec * 1000 + t.tv_usec / 1000;
- } else
- return 0;
+ }
+
+ return 0;
}

static void gpio_enable(struct timed_output_dev *dev, int value)
--
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/