diff options
author | Colin Ian King <colin.king@canonical.com> | 2018-11-25 17:09:18 +0000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2019-02-20 08:59:58 +1000 |
commit | 13649101a25c53c87f4ab98a076dfe61f3636ab1 (patch) | |
tree | 72cc6657b133d13db20dd467b2a12440ee7cf724 /drivers/soc | |
parent | d83d345338b10b560cf4532802be0973493075bb (diff) |
drm/nouveau/bios/ramcfg: fix missing parentheses when calculating RON
Currently, the expression for calculating RON is always going to result
in zero no matter the value of ram->mr[1] because the ! operator has
higher precedence than the shift >> operator. I believe the missing
parentheses around the expression before appying the ! operator will
result in the desired result.
[ Note, not tested ]
Detected by CoveritScan, CID#1324005 ("Operands don't affect result")
Fixes: c25bf7b6155c ("drm/nouveau/bios/ramcfg: Separate out RON pull value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/soc')
0 files changed, 0 insertions, 0 deletions