> > + > > + 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