]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
mmc: Remove redundant null check before kfree in sdio_bus.c
authorSachin Kamat <sachin.kamat@linaro.org>
Tue, 20 Nov 2012 09:13:16 +0000 (14:43 +0530)
committerChris Ball <cjb@laptop.org>
Thu, 6 Dec 2012 18:55:06 +0000 (13:55 -0500)
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>
drivers/mmc/core/sdio_bus.c

index fc2d94a3b60ca4c0fc9e062389c524c00394db0a..5e57048e2c1d2c0fbb202600f9bfa45ffa0355c4 100644 (file)
@@ -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);
 }