Skip to content
Commit 96449581 authored by Claudiu Beznea's avatar Claudiu Beznea Committed by Eugen Hristev
Browse files

net: macb: check clk_set_rate return value to be negative



clk_set_rate() returns the set rate in case of success and a
negative number in case of failure. Consider failure only the
negative numbers.

Fixes: 3ef64444 ("dm: net: macb: Implement link speed change callback")
Signed-off-by: default avatarClaudiu Beznea <claudiu.beznea@microchip.com>
parent bb890f75
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