Skip to content

Commit

Permalink
mmc: Remove redundant null check before kfree in sdio_bus.c
Browse files Browse the repository at this point in the history
kfree on a null pointer is a no-op.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
  • Loading branch information
Sachin Kamat authored and Chris Ball committed Dec 6, 2012
1 parent e3af31c commit 4c42d6c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/mmc/core/sdio_bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,7 @@ static void sdio_release_func(struct device *dev)

sdio_free_func_cis(func);

if (func->info)
kfree(func->info);
kfree(func->info);

kfree(func);
}
Expand Down

0 comments on commit 4c42d6c

Please sign in to comment.