浏览代码

mmc: Remove redundant null check before kfree in sdio_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 年之前
父节点
当前提交
4c42d6cc24
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      drivers/mmc/core/sdio_bus.c

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

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