From: Marcel Holtmann Date: Wed, 1 Apr 2015 20:51:51 +0000 (-0700) Subject: Bluetooth: Remove unneeded extra ( ) in valid flags check X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=41533fe5b4f92adb3c40f263b889dc6addff550e;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git Bluetooth: Remove unneeded extra ( ) in valid flags check Signed-off-by: Marcel Holtmann Signed-off-by: Johan Hedberg --- diff --git a/drivers/bluetooth/hci_ldisc.c b/drivers/bluetooth/hci_ldisc.c index 48a0c250d5b8..1363dc616ace 100644 --- a/drivers/bluetooth/hci_ldisc.c +++ b/drivers/bluetooth/hci_ldisc.c @@ -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;