gma500: medfield: drop bogus NULL check in mdfld_dsi_output_init()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 6 Nov 2012 14:34:25 +0000 (14:34 +0000)
committerDave Airlie <airlied@redhat.com>
Wed, 7 Nov 2012 01:35:32 +0000 (11:35 +1000)
Drop the NULL test for dev since it never be NULL.

dpatch engine is used to auto generate this patch.
(https://github.com/weiyj/dpatch)

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/gma500/mdfld_dsi_output.c

index 32dba2ab53e1dbf2e33476f7d3a226a7fb1e3d44..637dd84785e236d16464e1edc960272f6096ca58 100644 (file)
@@ -506,7 +506,7 @@ void mdfld_dsi_output_init(struct drm_device *dev,
 
        dev_dbg(dev->dev, "init DSI output on pipe %d\n", pipe);
 
-       if (!dev || ((pipe != 0) && (pipe != 2))) {
+       if (pipe != 0 && pipe != 2) {
                DRM_ERROR("Invalid parameter\n");
                return;
        }