Skip to contentSkip to conversation

staging/gdm72xx: return PTR_ERR rather -ENOENT

PATCH New Devendra Naga 1 participant 1 message Jul 12, 2012 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/5 staging/gdm72xx: return PTR_ERR rather -ENOENT

return the error of filp_open rather returning -ENOENT.

---
 drivers/staging/gdm72xx/usb_boot.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/gdm72xx/usb_boot.c +1 -1
index c163bcc..fef290c 100644
@@ -174,7 +174,7 @@ int usb_boot(struct usb_device *usbdev, u16 pid)
 	if (IS_ERR(filp)) {
 		printk(KERN_ERR "Can't find %s.\n", img_name);
 		set_fs(fs);
-		ret = -ENOENT;
+		ret = PTR_ERR(filp);
 		goto restore_fs;
 	}
 
Signature · 1 line
1.7.9.5