Hi Johan, On Tue, Feb 21, 2012 at 07:43:44PM +0200, johan.hedberg@xxxxxxxxx wrote: > From: Johan Hedberg <johan.hedberg@xxxxxxxxx> > > This patch makes it possible to toggle the connectable & discoverable > settings when powered off. Two new hdev->dev_flags flags are added to > track what the scan mode should be when the device is finally powered > on. > > Signed-off-by: Johan Hedberg <johan.hedberg@xxxxxxxxx> ... > + > + if (!!cp->val == test_bit(HCI_DISCOVERABLE, &hdev->dev_flags)) { Is this really the best we can do? Also applies to other similar code. Best regards Andrei Emeltchenko -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html