Skip to contentSkip to conversation

gpio: ks8695: fix 'else should follow close brace '}''

PATCH In review Varka Bhadram 2 participants 2 messages Sep 27, 2014 – Oct 2, 2014 GPIO

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 gpio: ks8695: fix 'else should follow close brace '}''

---
 drivers/gpio/gpio-ks8695.c |   10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)
drivers/gpio/gpio-ks8695.c +4 -6
index ba2d2f1..cc09b23 100644
@@ -276,18 +276,16 @@ static int ks8695_gpio_show(struct seq_file *s, void *unused)
 				case IOPC_TM_EDGE:
 					seq_printf(s, "(Edges)");	break;
 				}
-			}
-			else
+			} else
 				seq_printf(s, "GPIO\t");
-		}
-		else if (i <= KS8695_GPIO_5) {
+		} else if (i <= KS8695_GPIO_5) {
 			if (ctrl & enable[i])
 				seq_printf(s, "TOUT%i\t", i - KS8695_GPIO_4);
 			else
 				seq_printf(s, "GPIO\t");
-		}
-		else
+		} else {
 			seq_printf(s, "GPIO\t");
+		}
 
 		seq_printf(s, "\t");
 
Signature · 1 line
1.7.9.5