mtd: core: Align comment with an action in mtd_otp_nvmem_add()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 25 Mar 2024 15:11:50 +0000 (17:11 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 9 Apr 2024 06:35:34 +0000 (08:35 +0200)
commit5043e5553601504995300c98141230f5edd11933
tree57ce41ec44b04ea41b374d37702eb0212a6bb84d
parent1162bc2f8f5de7da23d18aa4b7fbd4e93c369c50
mtd: core: Align comment with an action in mtd_otp_nvmem_add()

The comment is related to the non-error case, make it more clear
by inverting the condition. It also makes code neater at the end.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Pratyush Yadav <pratyush@kernel.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20240325151150.3368658-1-andriy.shevchenko@linux.intel.com
drivers/mtd/mtdcore.c