diff options
author | Devendra Naga <devendra.aaru@gmail.com> | 2012-07-12 06:11:11 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-07-17 01:53:47 (GMT) |
commit | d67030d215ac1ec13cab16467904c2a7265e1fbd (patch) | |
tree | 52ac22794b1dbb808e0afe323a88f4f7a9edc6de /drivers/staging | |
parent | a6e28b34205be389068cd08238e1368443f31b8b (diff) | |
download | linux-fsl-qoriq-d67030d215ac1ec13cab16467904c2a7265e1fbd.tar.xz |
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')
-rw-r--r-- | drivers/staging/gdm72xx/usb_boot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/gdm72xx/usb_boot.c b/drivers/staging/gdm72xx/usb_boot.c index c163bcc..fef290c 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; } |