Re: [cocci] [PATCH 15/36] iio: remove conditional return with no effect
Joshua Crofts <[email protected]> Thu, 23 Jul 2026 23:46:07 +0200
| Newsgroups | fr.inria.cocci,org.kernel.vger.linux-iio,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <20260723234607.52b67523@systembl0wer> |
On Fri, 24 Jul 2026 03:45:17 +0900 Sang-Heon Jeon <[email protected]> wrote: > Both branches of the check return the same value, so the check has > no effect. Remove it and return the value directly. > > This is the result of running the Coccinelle script from > scripts/coccinelle/misc/cond_return_no_effect.cocci. > > Signed-off-by: Sang-Heon Jeon <[email protected]> > --- Good idea adding a cocci script for this! Reviewed-by: Joshua Crofts <[email protected]> -- Kind regards, Joshua Crofts