瀏覽代碼

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>
Wei Yongjun 12 年之前
父節點
當前提交
6380813c6e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/gpu/drm/gma500/mdfld_dsi_output.c

+ 1 - 1
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);
 	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");
 		DRM_ERROR("Invalid parameter\n");
 		return;
 		return;
 	}
 	}