[PATCH v1 1/1] mtd: core: Align comment with an action in mtd_otp_nvmem_add()

Andy Shevchenko andriy.shevchenko at linux.intel.com
Mon Mar 25 08:28:12 PDT 2024


On Mon, Mar 25, 2024 at 05:11:50PM +0200, Andy Shevchenko wrote:
> 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.

Just realized that even semantically it's better as it's done here
since we have an error path from which we exceptionally return successes
(in some cases). Tell me if I need to add this to the commit message.

-- 
With Best Regards,
Andy Shevchenko





More information about the linux-mtd mailing list