Skip to content

Commit

Permalink
gma500: medfield: drop bogus NULL check in mdfld_dsi_output_init()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wei Yongjun authored and Dave Airlie committed Nov 7, 2012
1 parent 39ec748 commit 6380813
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/gma500/mdfld_dsi_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 6380813

Please sign in to comment.