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:
Georgij Černyšiov <geo.cgv@gmail.com>
Loading
Please sign in to comment