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)
commit9084acf19bb98afb0ed90337fd39541103fe3494
tree047501ec96cb3c4fa99a90ed9d098b487241a095
parentfc2d2bc1f1f8d8351f884bb65b5cc4ad2411b2a7
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