From: Devendra Naga Date: Thu, 12 Jul 2012 06:11:11 +0000 (+0545) Subject: staging/gdm72xx: return PTR_ERR rather -ENOENT X-Git-Tag: v3.6-rc1~100^2~202 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d67030d215ac1ec13cab16467904c2a7265e1fbd;p=platform%2Fupstream%2Fkernel-adaptation-pc.git staging/gdm72xx: return PTR_ERR rather -ENOENT return the error of filp_open rather returning -ENOENT. Signed-off-by: Devendra Naga Signed-off-by: Greg Kroah-Hartman --- 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; }