Tag: 1b4b32c6b88b3a0985b9448f52b3a58021de5653

net: fec: Delete unnecessary checks before the function call “kfree”

Author: Markus Elfring <elfring@users.sourceforge.net> 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 Signed-off-by: David S. Miller — drivers/net/ethernet/freescale/fec_main.c | 7 ++—– 1 file changed, 2 insertions(+), 5 deletions(-)   …

Continue reading