diff options
Diffstat (limited to 'drivers/mtd/maps/sun_uflash.c')
-rw-r--r-- | drivers/mtd/maps/sun_uflash.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mtd/maps/sun_uflash.c b/drivers/mtd/maps/sun_uflash.c index 29091d10030a..1355c28f90a4 100644 --- a/drivers/mtd/maps/sun_uflash.c +++ b/drivers/mtd/maps/sun_uflash.c | |||
@@ -166,9 +166,7 @@ static void __exit uflash_cleanup(void) | |||
166 | iounmap(udev->map.virt); | 166 | iounmap(udev->map.virt); |
167 | udev->map.virt = NULL; | 167 | udev->map.virt = NULL; |
168 | } | 168 | } |
169 | if(0 != udev->name) { | 169 | kfree(udev->name); |
170 | kfree(udev->name); | ||
171 | } | ||
172 | kfree(udev); | 170 | kfree(udev); |
173 | } | 171 | } |
174 | } | 172 | } |