]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm/hdmi: Delete an unnecessary check before the function call "kfree"
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 13 Jul 2016 16:54:11 +0000 (18:54 +0200)
committerRob Clark <robdclark@gmail.com>
Sat, 16 Jul 2016 14:29:33 +0000 (10:29 -0400)
commitbaf3dd2b33fa7bc35d7689ea933c51f2a26a0d51
treee98d32200865cd176f4f79b9da8dcbbe7c3fb4a5
parent595d867b9aa15679e290b0b8d126d6e5beb19564
drm/msm/hdmi: Delete 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>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/hdmi/hdmi_hdcp.c