diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2012-11-06 18:34:25 +0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-11-07 05:35:32 +0400 |
commit | 6380813c6e316455b944ba5f7b1515c98b837850 (patch) | |
tree | d06ea4b101f30c166b4e1702a47cff9f94a7c5f5 | |
parent | 39ec748f717460290424208d23879eadbf5ffb1c (diff) | |
download | linux-6380813c6e316455b944ba5f7b1515c98b837850.tar.xz |
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>
-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 32dba2ab53e1..637dd84785e2 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; } |