Skip to content
Commit 33bab104 authored by Chris Brandt's avatar Chris Brandt Committed by Joe Hershberger
Browse files

net: miiphybb: fix casting error



Since the return value is a signed int, if the leading MSB of rdreg is a 1,
it will get signed extended and will return a negative value which is an
error even though we read the correct value.

Fixes: dfcc496e ("net: mii: Changes not made by spatch")
Signed-off-by: default avatarChris Brandt <chris.brandt@renesas.com>
Acked-by: default avatarNobuhiro Iwamatsu <iwamatsu@nigauri.org>
Acked-by: default avatarJoe Hershberger <joe.hershberger@ni.com>
parent f6ac626c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment