diff options
Diffstat (limited to 'drivers/mtd/maps/amd76xrom.c')
-rw-r--r-- | drivers/mtd/maps/amd76xrom.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mtd/maps/amd76xrom.c b/drivers/mtd/maps/amd76xrom.c index e8a900a77685..9a64149f431d 100644 --- a/drivers/mtd/maps/amd76xrom.c +++ b/drivers/mtd/maps/amd76xrom.c | |||
@@ -259,9 +259,7 @@ static int __devinit amd76xrom_init_one (struct pci_dev *pdev, | |||
259 | 259 | ||
260 | out: | 260 | out: |
261 | /* Free any left over map structures */ | 261 | /* Free any left over map structures */ |
262 | if (map) { | 262 | kfree(map); |
263 | kfree(map); | ||
264 | } | ||
265 | /* See if I have any map structures */ | 263 | /* See if I have any map structures */ |
266 | if (list_empty(&window->maps)) { | 264 | if (list_empty(&window->maps)) { |
267 | amd76xrom_cleanup(window); | 265 | amd76xrom_cleanup(window); |