Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=988d0093f9cb2bf27c299e373f9cbaac47dab2c1
Commit:     988d0093f9cb2bf27c299e373f9cbaac47dab2c1
Parent:     fea5fa875eb235dc186b1f5184eb36abc63e26cc
Author:     David S. Miller <[EMAIL PROTECTED]>
AuthorDate: Mon Feb 18 00:20:50 2008 -0800
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Mon Feb 18 00:20:50 2008 -0800

    [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 <[EMAIL PROTECTED]>
---
 net/bluetooth/hci_sysfs.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/net/bluetooth/hci_sysfs.c b/net/bluetooth/hci_sysfs.c
index e13cf5e..f5aff6d 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);
        }
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to