Skip to content

Commit

Permalink
mmc: Remove redundant null check before kfree in 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 4c42d6c commit 8db580c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/mmc/core/bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,7 @@ static void mmc_release_card(struct device *dev)

sdio_free_common_cis(card);

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

kfree(card);
}
Expand Down

0 comments on commit 8db580c

Please sign in to comment.