diff options
Diffstat (limited to 'drivers/mtd/chips/chipreg.c')
-rw-r--r-- | drivers/mtd/chips/chipreg.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/mtd/chips/chipreg.c b/drivers/mtd/chips/chipreg.c index da1f96f385c7..0bbc61ba9524 100644 --- a/drivers/mtd/chips/chipreg.c +++ b/drivers/mtd/chips/chipreg.c | |||
@@ -76,10 +76,7 @@ struct mtd_info *do_map_probe(const char *name, struct map_info *map) | |||
76 | */ | 76 | */ |
77 | module_put(drv->module); | 77 | module_put(drv->module); |
78 | 78 | ||
79 | if (ret) | 79 | return ret; |
80 | return ret; | ||
81 | |||
82 | return NULL; | ||
83 | } | 80 | } |
84 | /* | 81 | /* |
85 | * Destroy an MTD device which was created for a map device. | 82 | * Destroy an MTD device which was created for a map device. |