projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'v5.7-rc7' into perf/core, to pick up fixes
[linux-2.6-microblaze.git]
/
drivers
/
thunderbolt
/
usb4.c
diff --git
a/drivers/thunderbolt/usb4.c
b/drivers/thunderbolt/usb4.c
index
3d084ce
..
50c7534
100644
(file)
--- a/
drivers/thunderbolt/usb4.c
+++ b/
drivers/thunderbolt/usb4.c
@@
-182,6
+182,9
@@
static int usb4_switch_op(struct tb_switch *sw, u16 opcode, u8 *status)
return ret;
ret = tb_sw_read(sw, &val, TB_CFG_SWITCH, ROUTER_CS_26, 1);
+ if (ret)
+ return ret;
+
if (val & ROUTER_CS_26_ONS)
return -EOPNOTSUPP;