Bluetooth: Remove unneeded extra ( ) in valid flags check
authorMarcel Holtmann <marcel@holtmann.org>
Wed, 1 Apr 2015 20:51:51 +0000 (13:51 -0700)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 2 Apr 2015 05:41:21 +0000 (08:41 +0300)
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
drivers/bluetooth/hci_ldisc.c

index 48a0c25..1363dc6 100644 (file)
@@ -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;