[PATCH] mtd: spi-nor: swp: remove unnecessary else after return

Shuai Liu 847807867 at qq.com
Fri Oct 23 02:34:58 PDT 2026


On Fri, Oct 23, 2026, Michael Walle wrote:
> So what is the checkpatch warning? IMHO that change make the
> readability worse.

It's the "else is not generally useful after a break or return"
check in checkpatch.pl.

Fair point. With the comments attached to both branches, the
symmetric if/else reads fine, and I agree this isn't worth
changing. Please drop this patch.

Sorry for the noise.

Best regards,
Shuai Liu




More information about the linux-mtd mailing list