From: Greg Kroah-Hartman Date: Mon, 28 Aug 2006 18:43:25 +0000 (-0700) Subject: USB: fix __must_check warnings in drivers/usb/class/ X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=96cede531c632ac019003bf40128b1821761a164;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git USB: fix __must_check warnings in drivers/usb/class/ Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/class/usblp.c b/drivers/usb/class/usblp.c index 9b05a359b9f7..9cac11ca1bb7 100644 --- a/drivers/usb/class/usblp.c +++ b/drivers/usb/class/usblp.c @@ -927,7 +927,9 @@ static int usblp_probe(struct usb_interface *intf, /* Retrieve and store the device ID string. */ usblp_cache_device_id_string(usblp); - device_create_file(&intf->dev, &dev_attr_ieee1284_id); + retval = device_create_file(&intf->dev, &dev_attr_ieee1284_id); + if (retval) + goto abort_intfdata; #ifdef DEBUG usblp_check_status(usblp, 0);