Skip to content

Commit

Permalink
[BLUETOOTH] hci_sysfs.c: Kill build warning.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David S. Miller committed Feb 18, 2008
1 parent fea5fa8 commit 988d009
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions net/bluetooth/hci_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 988d009

Please sign in to comment.