Commit 8be84e03 authored by Syam Sidhardhan's avatar Syam Sidhardhan Committed by David Woodhouse

mtd: maps: Remove redundant NULL check before kfree

kfree on NULL pointer is a no-op.
Signed-off-by: default avatarSyam Sidhardhan <>
Signed-off-by: default avatarArtem Bityutskiy <>
Signed-off-by: default avatarDavid Woodhouse <>
parent 89134055
......@@ -308,8 +308,7 @@ static int ck804xrom_init_one(struct pci_dev *pdev,
/* Free any left over map structures */
if (map)
/* See if I have any map structures */
if (list_empty(&window->maps)) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment