commit | 7e4d4d194b038a29a6e8cbe28a52e8180be6e683 | [log] [tgz] |
---|---|---|
author | Chris Brandt <chris.brandt@renesas.com> | Fri Nov 03 08:30:13 2017 -0500 |
committer | Joe Hershberger <joe.hershberger@ni.com> | Mon Jan 15 12:05:17 2018 -0600 |
tree | f9ddd9ca62460d8200395d1af2ee19abf4e4edc9 | |
parent | a65a9297fd848d6460cb8206dd5ec6ed10c8fe3f [diff] |
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: dfcc496ed7e2 ("net: mii: Changes not made by spatch") Signed-off-by: Chris Brandt <chris.brandt@renesas.com> Acked-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> Acked-by: Joe Hershberger <joe.hershberger@ni.com>