Tag: 0ea4bce7c09e29dc0a1891f6c7ba17794ec5f2b1

[media] sp2: Delete an unnecessary check 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: Mauro Carvalho Chehab — drivers/media/dvb-frontends/sp2.c | 5 +—- 1 file changed, 1 insertion(+), 4 deletions(-)   …

Continue reading