]> git.baikalelectronics.ru Git - kernel.git/commit
net: sctp: Deletion of an unnecessary check before the function call "kfree"
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 31 Jan 2015 17:10:03 +0000 (18:10 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Feb 2015 03:29:43 +0000 (19:29 -0800)
commite0c43fa4fd8c95b0e51b7fbbad1c1099a2463d5b
treed4baedc4342665099f769f08c405c19dbb0bf3fe
parentfaf7fa30fb2c8fd9a86d85211e8423bc20ff5bb9
net: sctp: Deletion of an unnecessary check before the function call "kfree"

The kfree() function tests whether its argument is NULL and then
returns 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>
Acked-By: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/associola.c