diff options
author | Michael Trimarchi <michael@amarulasolutions.com> | 2022-07-25 10:06:06 +0200 |
---|---|---|
committer | Michael Trimarchi <michael@amarulasolutions.com> | 2022-08-22 11:15:04 +0200 |
commit | c76f9ddf91b14312e71594459ebb3dd72d885aa8 (patch) | |
tree | ce67ff83e709a7162c35ba1b8a7665d9dd8ccfca /arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog_serial.c | |
parent | 8a67acfce24f825b4935c87b2dbd70915d6eeeaa (diff) |
mtd: nand: change return type of nand_get_flash_type() to int
Upstream linux commit 4722c0e958e636.
The returned "type" is never used in nand_scan_ident() and spl code
Make nand_get_flash_type() simply return an integer value in order
to avoid unnecessary ERR_PTR/PTR_ERR dance.
Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
Reviewed-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Diffstat (limited to 'arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog_serial.c')
0 files changed, 0 insertions, 0 deletions