Skip to contentSkip to conversation

mfd: ab3550: fix error check

PATCH New Nicolas Kaiser 1 participant 1 message Oct 24, 2010 Multifunction devices (MFD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mfd: ab3550: fix error check

It looks to me like it was intended to check the return value at this point.

---
 drivers/mfd/ab3550-core.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mfd/ab3550-core.c +1 -1
index 8a98739..b8868cc 100644
@@ -997,7 +997,7 @@ static ssize_t ab3550_val_write(struct file *file,
 	if (err)
 		return -EINVAL;
 
-	get_register_interruptible(ab, (u8)ab->debug_bank,
+	err = get_register_interruptible(ab, (u8)ab->debug_bank,
 		(u8)ab->debug_address, &regvalue);
 	if (err)
 		return -EINVAL;
Signature · 1 line
1.7.2.2