diff options
| author | Zijun Hu <zijun.hu@oss.qualcomm.com> | 2026-06-25 22:19:57 -0700 |
|---|---|---|
| committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2026-08-07 12:33:01 -0400 |
| commit | e22eb379a92ae8093e7aa4296b1cc93409a362f8 (patch) | |
| tree | 2a20e2d57516f9ea4ec4396f420b12789b1635de | |
| parent | 92db4555c73f2aab9954dc7d2bc84c0563e6db7d (diff) | |
| download | linux-e22eb379a92ae8093e7aa4296b1cc93409a362f8.tar.gz linux-e22eb379a92ae8093e7aa4296b1cc93409a362f8.zip | |
Bluetooth: btusb: Use & instead of == to test bitflag BTUSB_IGNORE
The driver_info field is a bitmask, so use & instead of == to test the
BTUSB_IGNORE bitflag against it, which is consistent with how the other
flags are tested.
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Signed-off-by: Zijun Hu <zijun.hu@oss.qualcomm.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
| -rw-r--r-- | drivers/bluetooth/btusb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c index bb5e1c2a6bc4..88b87e50fac2 100644 --- a/drivers/bluetooth/btusb.c +++ b/drivers/bluetooth/btusb.c @@ -4101,7 +4101,7 @@ static int btusb_probe(struct usb_interface *intf, id = match; } - if (id->driver_info == BTUSB_IGNORE) + if (id->driver_info & BTUSB_IGNORE) return -ENODEV; if (id->driver_info & BTUSB_ATH3012) { |
