Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757321Ab2JRRAG (ORCPT ); Thu, 18 Oct 2012 13:00:06 -0400 Received: from mail-pa0-f46.google.com ([209.85.220.46]:63212 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757042Ab2JRRAC (ORCPT ); Thu, 18 Oct 2012 13:00:02 -0400 From: Sangho Yi To: paul.gortmaker@windriver.com, stefan.xk.nilsson@stericsson.com, linus.walleij@linaro.org, ulf.hansson@stericsson.com, rjw@sisk.pl, girish.shivananjappa@linaro.org, cjb@laptop.org Cc: linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, Sangho Yi Subject: [PATCH 6/6] mmc: core: sdio_bus.c: Removed unnecessary NULL check routine Date: Fri, 19 Oct 2012 01:58:23 +0900 Message-Id: <1350579503-3100-6-git-send-email-antiroot@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1350579503-3100-1-git-send-email-antiroot@gmail.com> References: <1350579503-3100-1-git-send-email-antiroot@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 845 Lines: 30 kfree(something) is safe function, so I removed the NULL check routine for the input of kfree. Signed-off-by: Sangho Yi --- drivers/mmc/core/sdio_bus.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mmc/core/sdio_bus.c b/drivers/mmc/core/sdio_bus.c index e5b7197..cf02146 100644 --- a/drivers/mmc/core/sdio_bus.c +++ b/drivers/mmc/core/sdio_bus.c @@ -259,8 +259,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); } -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/