提交 d67030d2 编写于 作者: D Devendra Naga 提交者: Greg Kroah-Hartman

staging/gdm72xx: return PTR_ERR rather -ENOENT

return the error of filp_open rather returning -ENOENT.
Signed-off-by: NDevendra Naga <devendra.aaru@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 a6e28b34
...@@ -174,7 +174,7 @@ int usb_boot(struct usb_device *usbdev, u16 pid) ...@@ -174,7 +174,7 @@ int usb_boot(struct usb_device *usbdev, u16 pid)
if (IS_ERR(filp)) { if (IS_ERR(filp)) {
printk(KERN_ERR "Can't find %s.\n", img_name); printk(KERN_ERR "Can't find %s.\n", img_name);
set_fs(fs); set_fs(fs);
ret = -ENOENT; ret = PTR_ERR(filp);
goto restore_fs; goto restore_fs;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册