Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

video: fbdev-MMP: Deletion of an unnecessary check before the function call "mmp_unregister_path"

The mmp_unregister_path() 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: Tomi Valkeinen <tomi.valkeinen@ti.com>

authored by

Markus Elfring and committed by
Tomi Valkeinen
3163e4cd 8a8e411d

+1 -2
+1 -2
drivers/video/fbdev/mmp/hw/mmp_ctrl.c
··· 441 441 if (!path_plat) 442 442 return; 443 443 444 - if (path_plat->path) 445 - mmp_unregister_path(path_plat->path); 444 + mmp_unregister_path(path_plat->path); 446 445 } 447 446 448 447 static int mmphw_probe(struct platform_device *pdev)