Re: [PATCH v2 5/5] iio: light: tcs3472: move standalone return to default case

From: Joshua Crofts

Date: Wed May 13 2026 - 04:16:24 EST


On Wed, 13 May 2026 at 00:40, Aldo Conte <aldocontelk@xxxxxxxxx> wrote:
>
> Move the trailing 'return -EINVAL' statements at the end of
> tcs3472_read_raw() and tcs3472_write_raw() into explicit default:
> cases inside the respective switch statements.
>
> This removes the need for a separate return statement after the switch.
>
> No functional change.
>
> Suggested-by: Andy Shevchenko <andy@xxxxxxxxxx>
> Signed-off-by: Aldo Conte <aldocontelk@xxxxxxxxx>

Reviewed-by: Joshua Crofts <joshua.crofts1@xxxxxxxxx>

--
Kind regards

CJD