]> git.baikalelectronics.ru Git - kernel.git/commit
drm/edid: Deletion of an unnecessary check before the function call "release_firmware"
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 19 Nov 2014 15:33:17 +0000 (16:33 +0100)
committerDave Airlie <airlied@redhat.com>
Fri, 21 Nov 2014 02:16:27 +0000 (12:16 +1000)
commita8475b85a024631d90e9ac45c94fb7f753884d36
tree047501ec96cb3c4fa99a90ed9d098b487241a095
parentb2f1ef92e76491f5d1a083cb45331fb8b4934f6f
drm/edid: Deletion of an unnecessary check before the function call "release_firmware"

The release_firmware() 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>
Reviewed-by: Thierry Reding <thierry.reding@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_edid_load.c