Commit 3410a711a52bdb5eac1395fc6734a3ef801f903b

Authored by Uwe Kleine-König
Committed by David Woodhouse
1 parent 88dfda5f74

mtd: simplify return logic in do_map_probe()

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>

Showing 1 changed file with 1 additions and 4 deletions Side-by-side Diff

drivers/mtd/chips/chipreg.c
... ... @@ -76,10 +76,7 @@
76 76 */
77 77 module_put(drv->module);
78 78  
79   - if (ret)
80   - return ret;
81   -
82   - return NULL;
  79 + return ret;
83 80 }
84 81 /*
85 82 * Destroy an MTD device which was created for a map device.