Re: [PATCH v5 5/5] Add ioctls to enable and disable local controls on an instrument

Andy Shevchenko
2015-11-25T20:46:32Z

On Wed, Nov 25, 2015 at 11:12 AM, Dave Penkler <dpenkler@gmail.com> 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