aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2021-04-22 12:10:28 +0300
committerDavid S. Miller <davem@davemloft.net>2021-04-22 14:56:38 -0700
commit27537929f30d3136a71ef29db56127a33c92dad7 (patch)
tree5913f0db28ff107ca58e6121894759d10118211a /arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi
parentnet: phy: marvell: fix m88e1111_set_downshift (diff)
downloadwireguard-linux-27537929f30d3136a71ef29db56127a33c92dad7.tar.xz
wireguard-linux-27537929f30d3136a71ef29db56127a33c92dad7.zip
bnxt_en: fix ternary sign extension bug in bnxt_show_temp()
The problem is that bnxt_show_temp() returns long but "rc" is an int and "len" is a u32. With ternary operations the type promotion is quite tricky. The negative "rc" is first promoted to u32 and then to long so it ends up being a high positive value instead of a a negative as we intended. Fix this by removing the ternary. Fixes: d69753fa1ecb ("bnxt_en: return proper error codes in bnxt_show_temp") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi')
0 files changed, 0 insertions, 0 deletions