Commit 542d886b authored by Alexey Zaytsev's avatar Alexey Zaytsev Committed by Jiri Kosina

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: default avatarAlexey Zaytsev <alexey.zaytsev@gmail.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 24ec68fb
......@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment