]> git.dujemihanovic.xyz Git - u-boot.git/commit
mtd: nand: zynq_nand: Change datatype of status and ecc_status to int
authorAlgapally Santosh Sagar <santoshsagar.algapally@amd.com>
Wed, 14 Jun 2023 09:03:57 +0000 (03:03 -0600)
committerMichal Simek <michal.simek@amd.com>
Fri, 21 Jul 2023 07:00:38 +0000 (09:00 +0200)
commit52279be25cf53491a605ce2ebcefd81b4e7ed9b3
treedfd7184b5d69a731e327114de67e98c347c3de86
parent0ebb68fb55f135b036fe20a74f2cfebd98ac0b76
mtd: nand: zynq_nand: Change datatype of status and ecc_status to int

status and ecc_status are of unsigned type where they are compared for
negative value. This is pointed by below sparse warning. Change datatype
to int to fix this.
warning: comparison of unsigned expression in '< 0' is always false
[-Wtype-limits]

Signed-off-by: Algapally Santosh Sagar <santoshsagar.algapally@amd.com>
Reviewed-by: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@amd.com>
Link: https://lore.kernel.org/r/20230614090359.10809-5-ashok.reddy.soma@amd.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
drivers/mtd/nand/raw/zynq_nand.c