diff options
author | Alexey Zaytsev <alexey.zaytsev@gmail.com> | 2009-01-10 00:48:28 +0100 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2009-03-30 15:21:57 +0200 |
commit | 542d886b7f326182cd0a484714d0117e3a8cf11b (patch) | |
tree | 531791d11c518ad4082a4d014f19b003e298de34 /drivers/usb | |
parent | trivial: Fix dubious bitwise 'or' usage spotted by sparse. (diff) | |
download | linux-542d886b7f326182cd0a484714d0117e3a8cf11b.tar.xz linux-542d886b7f326182cd0a484714d0117e3a8cf11b.zip |
trivial: Fix dubious bitwise 'and' usage spotted by sparse.
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>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/wusbcore/security.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/wusbcore/security.c b/drivers/usb/wusbcore/security.c index 8118db7f1d8d..b2f149fedcc5 100644 --- a/drivers/usb/wusbcore/security.c +++ b/drivers/usb/wusbcore/security.c @@ -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, |