Skip to contentSkip to conversation

mcp23s08: check read_regs() retval

PATCH New Roel Kluin 1 participant 1 message Apr 17, 2008

Subsystems (2)
lore
Share & tools
lore

Roel Kluin

author
#0 lore raw

PATCH 1/1 mcp23s08: check read_regs() retval

The return value of mcp23s08_read_regs() can only be evaluated when signed

---

drivers/gpio/mcp23s08.c +1 -1
index bb60e8c..0eef8b8 100644
@@ -168,7 +168,7 @@ static void mcp23s08_dbg_show(struct seq_file *s, struct gpio_chip *chip)
 {
 	struct mcp23s08	*mcp;
 	char		bank;
-	unsigned	t;
+	int		t;
 	unsigned	mask;
 
 	mcp = container_of(chip, struct mcp23s08, chip);

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone