Skip to content

Commit

Permalink
staging/gdm72xx: return PTR_ERR rather -ENOENT
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Devendra Naga authored and Greg Kroah-Hartman committed Jul 17, 2012
1 parent a6e28b3 commit d67030d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/gdm72xx/usb_boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit d67030d

Please sign in to comment.