[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1406589075-7483-1-git-send-email-mopsfelder@gmail.com>
Date: Mon, 28 Jul 2014 20:11:15 -0300
From: Murilo Opsfelder Araujo <mopsfelder@...il.com>
To: devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org
Cc: gregkh@...uxfoundation.org,
Murilo Opsfelder Araujo <mopsfelder@...il.com>
Subject: [PATCH] Staging: android: timed_gpio.c: remove else statement after return
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@...il.com>
---
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists