mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 05:04:02 +02:00
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>
This commit is contained in:
parent
92db4555c7
commit
e22eb379a9
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user