提交 4c42d6cc 编写于 作者: S Sachin Kamat 提交者: Chris Ball

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

kfree on a null pointer is a no-op.
Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: NChris Ball <cjb@laptop.org>
上级 e3af31c6
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册