Re: [PATCH v2] iio: temperature: tsys02d: Fix state desynchronization on resolution write error

From: Andy Shevchenko

Date: Thu Sep 17 2026 - 08:32:49 EST


On Thu, Sep 17, 2026 at 01:16:38PM +0200, Joshua Crofts wrote:
> On Thu, 17 Sep 2026 10:16:08 +0100
> Salah Triki <salah.triki@xxxxxxxxx> wrote:

...

> > - return ret;
> > + dev_data->res_index = i;
>
> You're missing a return, this will just fall through to the default
> case below.
>
> > default:
> > return -EINVAL;

...and having a such without explicit annotation will lead to a compiler
warning.

--
With Best Regards,
Andy Shevchenko