]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mtd: spi-nor: swp: Cosmetic changes
authorMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 26 May 2026 14:56:40 +0000 (16:56 +0200)
committerPratyush Yadav <pratyush@kernel.org>
Tue, 26 May 2026 15:21:04 +0000 (17:21 +0200)
commit0e005045292dde634ed3973b5070eb2de62dc1df
treef46c2ce591df5c221d638925bd0a387682375acb
parentc672673c4b7b82d21537cd5aa32b98f48c20a2b2
mtd: spi-nor: swp: Cosmetic changes

As a final preparation step for the introduction of CMP support, make
a few more cosmetic changes to simplify the reading of the diff when
adding the CMP feature. In particular, define "min_prot_len" earlier as
it will be reused and move the definition of the "ret" variable at the
end of the stack just because it looks better.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Pratyush Yadav <pratyush@kernel.org>
drivers/mtd/spi-nor/swp.c