]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: nand: change return type of nand_get_flash_type() to int
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 4 Nov 2016 08:49:08 +0000 (17:49 +0900)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Mon, 7 Nov 2016 13:48:40 +0000 (14:48 +0100)
commitf572fb21f385e6f694bc625ac6db94363902ae87
treeb52f0a66e08d1a17fd0c28f11258f9b2025c1a14
parentea81aa85173301aba705bf763b6bba65dfe23c3c
mtd: nand: change return type of nand_get_flash_type() to int

Since commit 9a530435549a ("mtd: nand: add support for reading ONFI
parameters from NAND device"), the returned "type" is never used in
nand_scan_ident().

Make nand_get_flash_type() simply return an integer value in order
to avoid unnecessary ERR_PTR/PTR_ERR dance.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/nand_base.c