summaryrefslogtreecommitdiff
path: root/drivers/staging/gdm72xx
diff options
context:
space:
mode:
authorDevendra Naga <devendra.aaru@gmail.com>2012-07-12 11:56:11 +0545
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-07-16 18:53:47 -0700
commitd67030d215ac1ec13cab16467904c2a7265e1fbd (patch)
tree52ac22794b1dbb808e0afe323a88f4f7a9edc6de /drivers/staging/gdm72xx
parenta6e28b34205be389068cd08238e1368443f31b8b (diff)
staging/gdm72xx: return PTR_ERR rather -ENOENT
return the error of filp_open rather returning -ENOENT. Signed-off-by: Devendra Naga <devendra.aaru@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/gdm72xx')
-rw-r--r--drivers/staging/gdm72xx/usb_boot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/gdm72xx/usb_boot.c b/drivers/staging/gdm72xx/usb_boot.c
index c163bcc437ed..fef290c38db6 100644
--- a/drivers/staging/gdm72xx/usb_boot.c
+++ b/drivers/staging/gdm72xx/usb_boot.c
@@ -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;
}