diff options
author | Mika Westerberg <mika.westerberg@linux.intel.com> | 2020-01-08 15:53:16 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-01-08 18:55:42 +0300 |
commit | c7a7ac84afeaf310a0ee477fc114e1e291a37c43 (patch) | |
tree | 21c0c29ef699dbb69e9c21a89f837b34c6f863f3 /drivers/thunderbolt/dma_port.h | |
parent | a00dfd4ddd4871eb87a5216970a338bf381abfbe (diff) | |
download | linux-c7a7ac84afeaf310a0ee477fc114e1e291a37c43.tar.xz |
thunderbolt: Fix xhci check in usb4_switch_setup()
The code tried to check whether xhci variable has ROUTER_CS_6_HCI bit
set but since xhci type is bool and it already holds true or false based
on that very bit, fix the check to use the variable directly.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Fixes: b04079837b20 ("thunderbolt: Add initial support for USB4")
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Link: https://lore.kernel.org/r/20200108125317.36444-2-mika.westerberg@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/thunderbolt/dma_port.h')
0 files changed, 0 insertions, 0 deletions