Thread (19 messages) flat view 19 messages, 2 authors, 2014-07-07
STALE4453d

[PATCH 01/12] mfd: ab8500-core: Remove pointless else in if statement

From: Lee Jones <hidden>
Date: 2014-07-02 15:29:05
Also in: lkml
Subsystem: arm/nomadik/ux500 architectures, multifunction devices (mfd), the rest · Maintainers: Linus Walleij, Lee Jones, Linus Torvalds

Save a line of code (albeit, it's replaced by a blank line, but
still), as the else is superfluous.

Cc: Linus Walleij <redacted>
Signed-off-by: Lee Jones <redacted>
---
 drivers/mfd/ab8500-core.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/mfd/ab8500-core.c b/drivers/mfd/ab8500-core.c
index cf2e6a1..857f19a 100644
--- a/drivers/mfd/ab8500-core.c
+++ b/drivers/mfd/ab8500-core.c
@@ -607,8 +607,8 @@ int ab8500_suspend(struct ab8500 *ab8500)
 {
 	if (atomic_read(&ab8500->transfer_ongoing))
 		return -EINVAL;
-	else
-		return 0;
+
+	return 0;
 }
 
 static struct resource ab8500_gpadc_resources[] = {
-- 
1.8.3.2
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help