Re: [PATCH] drm/arcpgu: Delete an unnecessary check before drm_fbdev_cma_hotplug_event()

From: Alexey Brodkin
Date: Tue Jul 19 2016 - 14:05:23 EST


Hi Markus,

On Fri, 2016-07-15 at 22:00 +-0200, SF Markus Elfring wrote:
+AD4- From: Markus Elfring +ADw-elfring+AEA-users.sourceforge.net+AD4-
+AD4- Date: Fri, 15 Jul 2016 21:52:40 +-0200
+AD4-
+AD4- The drm+AF8-fbdev+AF8-cma+AF8-hotplug+AF8-event() function tests whether its argument
+AD4- is NULL and then returns immediately.
+AD4- Thus the test around the call is not needed.
+AD4-
+AD4- This issue was detected by using the Coccinelle software.
+AD4-
+AD4- Signed-off-by: Markus Elfring +ADw-elfring+AEA-users.sourceforge.net+AD4-

Good catch+ACE-

Acked-by: Alexey Brodkin +ADw-abrodkin+AEA-synopsys.com+AD4-