aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/input/yealink.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/input/yealink.c')
-rw-r--r--drivers/usb/input/yealink.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/usb/input/yealink.c b/drivers/usb/input/yealink.c
index caff8e6d744..688abcdf1f0 100644
--- a/drivers/usb/input/yealink.c
+++ b/drivers/usb/input/yealink.c
@@ -955,7 +955,9 @@ static int usb_probe(struct usb_interface *intf, const struct usb_device_id *id)
955 } 955 }
956 } 956 }
957 957
958 input_register_device(yld->idev); 958 ret = input_register_device(yld->idev);
959 if (ret)
960 return usb_cleanup(yld, ret);
959 961
960 usb_set_intfdata(intf, yld); 962 usb_set_intfdata(intf, yld);
961 963