]> git.baikalelectronics.ru Git - kernel.git/commit
s390-ctcm: Delete unnecessary checks before the function call "channel_remove"
authorMarkus Elfring <elfring@users.sourceforge.net>
Fri, 11 Dec 2015 11:27:53 +0000 (12:27 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Dec 2015 21:16:44 +0000 (16:16 -0500)
commit4ad9dcbd0d8b204649d2e040b4302fb33cc58ecf
tree900fadc491e47326cd6e0380a9e88f11e5447c15
parent66e8c7f45666da02e337b11ac728f2b243ca3f68
s390-ctcm: Delete unnecessary checks before the function call "channel_remove"

The channel_remove() 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>
Signed-off-by: Ursula Braun <ubraun@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/s390/net/ctcm_main.c