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-Tag: v2.6.19-rc1~899^2~23 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=96cede531c632ac019003bf40128b1821761a164;p=linux-2.6-omap-h63xx.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 9b05a359b9f..9cac11ca1bb 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);