On Wed, Nov 25, 2015 at 11:12 AM, Dave Penkler <dpenkler@xxxxxxxxx> wrote: > On Sun, Nov 22, 2015 at 12:36:53PM +0200, Andy Shevchenko wrote: > OK so now I have the same as in v4 again: > > if (rv < 0) { > dev_err(dev, "simple usb_control_msg failed %d\n", rv); > goto exit; > } else if (rv != 1) { > dev_warn(dev, "simple usb_control_msg returned %d\n", rv); > rv = -EIO; > goto exit; > } This looks correct. Sorry if I misled you, but I really asked about error code in the first place. -- With Best Regards, Andy Shevchenko -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html