Skip to contentSkip to conversation

Bluetooth: Remove unneeded extra ( ) in valid flags check

PATCH In review Marcel Holtmann 2 participants 2 messages Apr 1, 2015 – Apr 2, 2015 Bluetooth drivers

lore
Share & tools
lore

Marcel Holtmann

author maintainer
#0 lore raw

PATCH 1/4 Bluetooth: Remove unneeded extra ( ) in valid flags check

---
 drivers/bluetooth/hci_ldisc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/bluetooth/hci_ldisc.c +1 -1
index 48a0c250d5b8..1363dc616ace 100644
@@ -499,7 +499,7 @@ static int hci_uart_set_flags(struct hci_uart *hu, unsigned long flags)
 				    BIT(HCI_UART_INIT_PENDING) |
 				    BIT(HCI_UART_EXT_CONFIG);
 
-	if ((flags & ~valid_flags))
+	if (flags & ~valid_flags)
 		return -EINVAL;
 
 	hu->hdev_flags = flags;
Signature · 1 line
2.1.0
#1 lore raw

Hi Marcel,

Quoted 4 lines · Marcel Holtmann
---
 drivers/bluetooth/hci_ldisc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

All four patches have been applied to bluetooth-next. Thanks.

Johan