[PATCH] mtd: rawnand: pl353: Use int type to store negative error codes

Miquel Raynal miquel.raynal at bootlin.com
Mon Sep 1 06:02:36 PDT 2025


On Sat, 30 Aug 2025 18:06:37 +0800, Qianfeng Rong wrote:
> Change the 'ret' variable from u32 to int in pl35x_nand_probe() to store
> negative error codes or zero;
> 
> Storing the negative error codes in unsigned type, doesn't cause an issue
> at runtime but can be confusing. Additionally, assigning negative error
> codes to unsigned type may trigger a GCC warning when the -Wsign-conversion
> flag is enabled.
> 
> [...]

Applied to nand/next, thanks!

[1/1] mtd: rawnand: pl353: Use int type to store negative error codes
      commit: 8a9e097def55391273d3042b32350ded1ec83e04

Patche(s) should be available on mtd/linux.git and will be
part of the next PR (provided that no robot complains by then).

Kind regards,
Miquèl




More information about the linux-mtd mailing list