Skip to content
Commit 447e1188 authored by Georgij Černyšiov's avatar Georgij Černyšiov Committed by Chris Friedt
Browse files

drivers: eth: oa_tc6: fix status check garbage value



If reading the status register fails, the register
`sts` will contain meaningless data.

In such cases, the function should return an error
and not attempt to clear any pending interrupts
with invalid data.

Signed-off-by: default avatarGeorgij Černyšiov <geo.cgv@gmail.com>
parent 37f9aed2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment