]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
trivial: Fix dubious bitwise 'and' usage spotted by sparse.
authorAlexey Zaytsev <alexey.zaytsev@gmail.com>
Fri, 9 Jan 2009 23:48:28 +0000 (02:48 +0300)
committerJiri Kosina <jkosina@suse.cz>
Mon, 30 Mar 2009 13:21:57 +0000 (15:21 +0200)
It doesn't change the semantics, but clearly
the logical 'and' was meant to be used here.

Signed-off-by: Alexey Zaytsev <alexey.zaytsev@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/usb/wusbcore/security.c

index 8118db7f1d8ddd230b8f5e6c2dcc116d2eb64d89..b2f149fedcc50ce2a705c51c8f1148ec2346c8ed 100644 (file)
@@ -562,7 +562,7 @@ void wusbhc_gtk_rekey(struct wusbhc *wusbhc)
                struct wusb_dev *wusb_dev;
 
                wusb_dev = wusbhc->port[p].wusb_dev;
-               if (!wusb_dev || !wusb_dev->usb_dev | !wusb_dev->usb_dev->authenticated)
+               if (!wusb_dev || !wusb_dev->usb_dev || !wusb_dev->usb_dev->authenticated)
                        continue;
 
                usb_fill_control_urb(wusb_dev->set_gtk_urb, wusb_dev->usb_dev,