Commit 0cc0b223 authored by Thierry Reding's avatar Thierry Reding Committed by Daniel Vetter

drm: Do not assign in if condition

checkpatch requires the assignment and the check to be separate
statements.
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 2f6c5389
......@@ -1613,7 +1613,8 @@ int drm_mode_group_init_legacy_group(struct drm_device *dev,
struct drm_bridge *bridge;
int ret;
if ((ret = drm_mode_group_init(dev, group)))
ret = drm_mode_group_init(dev, group);
if (ret)
return ret;
list_for_each_entry(crtc, &dev->mode_config.crtc_list, head)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment