aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2017-02-08 02:46:01 +0300
committerDaniel Vetter <[email protected]>2017-02-08 16:15:42 +0100
commitf9ad86e42d0303eeb8e0d41bb208153022ebd9d2 (patch)
tree097e219297aec6cc2bff67c48e1ce956d88fcaa9 /scripts/gcc-plugins/cyc_complexity_plugin.c
parent24f76b2c87ed68f79f9f0705b11ccbefaaa0d390 (diff)
drm/atomic: fix an error code in mode_fixup()
Having "ret" be a bool type works for everything except ret = funcs->atomic_check(). The other functions all return zero on error but ->atomic_check() returns negative error codes. We want to propagate the error code but instead we return 1. I found this bug with static analysis and I don't know if it affects run time. Fixes: 4cd4df8080a3 ("drm/atomic: Add ->atomic_check() to encoder helpers") Cc: [email protected] Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Daniel Vetter <[email protected]> Link: http://patchwork.freedesktop.org/patch/msgid/20170207234601.GA23981@mwanda
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions