From: Thierry Reding Date: Wed, 10 Dec 2014 12:03:37 +0000 (+0100) Subject: drm: Do not assign in if condition X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0cc0b223e7c9b4642c86d46f20d3d4a4a89bede3;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git drm: Do not assign in if condition checkpatch requires the assignment and the check to be separate statements. Signed-off-by: Thierry Reding Signed-off-by: Daniel Vetter --- 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)