From: Andrew Morton net/bluetooth/hci_sysfs.c: In function 'del_conn': net/bluetooth/hci_sysfs.c:339: warning: suggest parentheses around assignment used as truth value Cc: Dave Young Cc: David S. Miller Signed-off-by: Andrew Morton --- net/bluetooth/hci_sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN net/bluetooth/hci_sysfs.c~bluetooth-fix-warning-in-net-bluetooth-hci_sysfsc net/bluetooth/hci_sysfs.c --- a/net/bluetooth/hci_sysfs.c~bluetooth-fix-warning-in-net-bluetooth-hci_sysfsc +++ a/net/bluetooth/hci_sysfs.c @@ -336,7 +336,7 @@ static void del_conn(struct work_struct struct device *dev; struct hci_conn *conn = container_of(work, struct hci_conn, work); - while (dev = device_find_child(&conn->dev, NULL, __match_tty)) { + while ((dev = device_find_child(&conn->dev, NULL, __match_tty))) { device_move(dev, NULL); put_device(dev); } _