RE: [PATCH 1/2] staging: iio: adc: Enable driver support for ad799x AD converters

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> > +
> > +     return 0;
> > +error_cleanup_ring:
> > +     ad799x_ring_cleanup(st->indio_dev);
> > +error_free_device:
> > +     if (!regdone)
>
> Where is regdone populated if it is always 1 we may remove the check.

Regdone is only set in case iio_device_register() succeeds.


> > +             iio_free_device(st->indio_dev);

Yes that's fine.
I missed it.

--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux