Skip to contentSkip to conversation

pinctrl: abx500: fix build warning

PATCH In review [email protected] 2 participants 2 messages Jun 11, 2013 Pin control

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pinctrl: abx500: fix build warning

From: Patrice Chotard <[email protected]>

pinctrl-abx500.c: In function 'abx500_gpio_dbg_show_one':
pinctrl-abx500.c:534:14: warning: 'pud' may be used uninitialized in this function [-Wuninitialized]

---
 drivers/pinctrl/pinctrl-abx500.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pinctrl/pinctrl-abx500.c +1 -1
index a6992c3..dad03be 100644
@@ -506,7 +506,7 @@ static void abx500_gpio_dbg_show_one(struct seq_file *s,
 	int mode = -1;
 	bool is_out;
 	bool pd;
-	enum abx500_gpio_pull_updown pud;
+	enum abx500_gpio_pull_updown pud = 0;
 
 	const char *modes[] = {
 		[ABX500_DEFAULT]	= "default",
Signature · 1 line
1.7.10