summaryrefslogtreecommitdiff
path: root/net/bluetooth
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-02-18 00:20:50 -0800
committerDavid S. Miller <davem@davemloft.net>2008-02-18 00:20:50 -0800
commit988d0093f9cb2bf27c299e373f9cbaac47dab2c1 (patch)
tree361376caf0e73c59e59d87766aefb7de807c2e67 /net/bluetooth
parentfea5fa875eb235dc186b1f5184eb36abc63e26cc (diff)
downloadlinux-3.10-988d0093f9cb2bf27c299e373f9cbaac47dab2c1.tar.gz
linux-3.10-988d0093f9cb2bf27c299e373f9cbaac47dab2c1.tar.bz2
linux-3.10-988d0093f9cb2bf27c299e373f9cbaac47dab2c1.zip
[BLUETOOTH] hci_sysfs.c: Kill build warning.
net/bluetooth/hci_sysfs.c: In function ‘del_conn’: net/bluetooth/hci_sysfs.c:339: warning: suggest parentheses around assignment used as truth value Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bluetooth')
-rw-r--r--net/bluetooth/hci_sysfs.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/net/bluetooth/hci_sysfs.c b/net/bluetooth/hci_sysfs.c
index e13cf5ef144..f5aff6d0988 100644
--- a/net/bluetooth/hci_sysfs.c
+++ b/net/bluetooth/hci_sysfs.c
@@ -333,10 +333,14 @@ static int __match_tty(struct device *dev, void *data)
static void del_conn(struct work_struct *work)
{
- 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 (1) {
+ struct device *dev;
+
+ dev = device_find_child(&conn->dev, NULL, __match_tty);
+ if (!dev)
+ break;
device_move(dev, NULL);
put_device(dev);
}