Browse Source

mmc: Remove redundant null check before kfree in bus.c

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>
Sachin Kamat 12 years ago
parent
commit
8db580ccfd
1 changed files with 1 additions and 2 deletions
  1. 1 2
      drivers/mmc/core/bus.c

+ 1 - 2
drivers/mmc/core/bus.c

@@ -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);
 }