[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1350655138-2252-1-git-send-email-antiroot@gmail.com>
Date: Fri, 19 Oct 2012 22:58:57 +0900
From: Sangho Yi <antiroot@...il.com>
To: prakity@...dia.com, aaron.lu@....com, linus.walleij@...aro.org,
paul.gortmaker@...driver.com, chuanxiao.dong@...el.com,
cjb@...top.org
Cc: linux-kernel@...r.kernel.org, linux-mmc@...r.kernel.org,
Sangho Yi <antiroot@...il.com>
Subject: [PATCH 1/2] mmc: core: bus.c: removed unnecessary NULL check for kfree(...)
kfree(NULL) is safe so I removed the if statements for NULL check.
Signed-off-by: Sangho Yi <antiroot@...il.com>
---
drivers/mmc/core/bus.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/mmc/core/bus.c b/drivers/mmc/core/bus.c
index 9b68933..420cb67 100644
--- a/drivers/mmc/core/bus.c
+++ b/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);
}
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists