]> git.baikalelectronics.ru Git - kernel.git/commit
NetCP: Deletion of unnecessary checks before two function calls
authorMarkus Elfring <elfring@users.sourceforge.net>
Tue, 3 Feb 2015 19:12:25 +0000 (20:12 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Feb 2015 04:29:47 +0000 (20:29 -0800)
commitb16522bbd74d4a00ff5c5e9191b81fe5a3cd3b65
treec3b1051a8d55dc71b216c608fe1fa9be50bc1326
parente569d9d73af3c5315c21317effc104ce7b47d54d
NetCP: Deletion of unnecessary checks before two function calls

The functions cpsw_ale_destroy() and of_dev_put() test whether their argument
is NULL and then return immediately. Thus the test around the call
is not needed.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/netcp_ethss.c