From foo@baz Tue Apr 9 12:12:43 2002 Date: Mon, 28 Aug 2006 11:43:25 -0700 To: Greg KH From: Greg Kroah-Hartman Subject: USB: fix __must_check warnings in drivers/usb/class/ Signed-off-by: Greg Kroah-Hartman --- drivers/usb/class/usblp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- gregkh-2.6.orig/drivers/usb/class/usblp.c +++ gregkh-2.6/drivers/usb/class/usblp.c @@ -927,7 +927,9 @@ static int usblp_probe(struct usb_interf /* 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);