diff options
author | Thierry Reding <treding@nvidia.com> | 2014-12-10 13:03:37 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-12-10 14:13:44 +0100 |
commit | 0cc0b223e7c9b4642c86d46f20d3d4a4a89bede3 (patch) | |
tree | c186a98a6ecb09cf89f335dbd8c539d4f3f973dc /drivers/gpu/drm/drm_crtc.c | |
parent | 2f6c538924108fbffb72a0696f28537b364080fa (diff) | |
download | linux-0cc0b223e7c9b4642c86d46f20d3d4a4a89bede3.tar.bz2 |
drm: Do not assign in if condition
checkpatch requires the assignment and the check to be separate
statements.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/drm_crtc.c')
-rw-r--r-- | drivers/gpu/drm/drm_crtc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c index 0d3a4105f4e8..e8036fd38aee 100644 --- a/drivers/gpu/drm/drm_crtc.c +++ b/drivers/gpu/drm/drm_crtc.c @@ -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) |