staging: ks7010: Delete unnecessary checks before the function call "kfree"
authorMarkus Elfring <elfring@users.sourceforge.net>
Sun, 17 Jul 2016 11:14:57 +0000 (13:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Aug 2016 14:34:18 +0000 (16:34 +0200)
commit58043f2527fe012e48ce30a5386c9763c88e5dd3
treef1afddfeaee97202a8aec2e5e8096f35fa074be6
parent68d81dea4fc105666516146f6c5e91aa0fe1be02
staging: ks7010: Delete unnecessary checks before the function call "kfree"

The kfree() function tests whether its argument is NULL and then
returns immediately. Thus the test around the calls is not needed.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Acked-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ks7010/ks7010_sdio.c