diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2012-11-06 09:34:25 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-11-06 20:35:32 -0500 |
commit | 6380813c6e316455b944ba5f7b1515c98b837850 (patch) | |
tree | d06ea4b101f30c166b4e1702a47cff9f94a7c5f5 | |
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>
-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, | |||
506 | 506 | ||
507 | dev_dbg(dev->dev, "init DSI output on pipe %d\n", pipe); | 507 | dev_dbg(dev->dev, "init DSI output on pipe %d\n", pipe); |
508 | 508 | ||
509 | if (!dev || ((pipe != 0) && (pipe != 2))) { | 509 | if (pipe != 0 && pipe != 2) { |
510 | DRM_ERROR("Invalid parameter\n"); | 510 | DRM_ERROR("Invalid parameter\n"); |
511 | return; | 511 | return; |
512 | } | 512 | } |