Re: [PATCH v2 5/5] iio: light: tcs3472: move standalone return to default case
Joshua Crofts <[email protected]>
| Newsgroups | dev.linux.lists.linux-kernel-mentees,org.kernel.vger.linux-iio,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <CALoEA-zirqmv6Ru0KLDjkaE4iUYaLWCnhC6B0r_w66-oZ==pvg@mail.gmail.com> |
On Wed, 13 May 2026 at 00:40, Aldo Conte <[email protected]> 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 <[email protected]> > Signed-off-by: Aldo Conte <[email protected]> Reviewed-by: Joshua Crofts <[email protected]> -- Kind regards CJD