diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2012-11-06 14:34:25 +0000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-11-07 11:35:32 +1000 |
commit | 6380813c6e316455b944ba5f7b1515c98b837850 (patch) | |
tree | d06ea4b101f30c166b4e1702a47cff9f94a7c5f5 /drivers/gpu/drm/gma500 | |
parent | 39ec748f717460290424208d23879eadbf5ffb1c (diff) |
gma500: medfield: drop bogus NULL check in mdfld_dsi_output_init()
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>
Diffstat (limited to 'drivers/gpu/drm/gma500')
-rw-r--r-- | drivers/gpu/drm/gma500/mdfld_dsi_output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/gma500/mdfld_dsi_output.c b/drivers/gpu/drm/gma500/mdfld_dsi_output.c index 32dba2ab53e..637dd84785e 100644 --- a/drivers/gpu/drm/gma500/mdfld_dsi_output.c +++ b/drivers/gpu/drm/gma500/mdfld_dsi_output.c @@ -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; } |