mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-27 03:47:43 +00:00
mtd: nand: nandsim: remove unneeded checks for nand_scan_ident/tail()
The nand_scan_ident/tail() never returns a positive value when it fails. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Marek Vasut <marek.vasut@gmail.com> Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
This commit is contained in:
parent
133fe8fa61
commit
c75183020f
@ -2313,8 +2313,6 @@ static int __init ns_init_module(void)
|
||||
retval = nand_scan_ident(nsmtd, 1, NULL);
|
||||
if (retval) {
|
||||
NS_ERR("cannot scan NAND Simulator device\n");
|
||||
if (retval > 0)
|
||||
retval = -ENXIO;
|
||||
goto error;
|
||||
}
|
||||
|
||||
@ -2350,8 +2348,6 @@ static int __init ns_init_module(void)
|
||||
retval = nand_scan_tail(nsmtd);
|
||||
if (retval) {
|
||||
NS_ERR("can't register NAND Simulator\n");
|
||||
if (retval > 0)
|
||||
retval = -ENXIO;
|
||||
goto error;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user