ALSA: line6: Use logical OR
authorTakashi Iwai <tiwai@suse.de>
Fri, 23 Jan 2015 13:31:03 +0000 (14:31 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 28 Jan 2015 06:20:46 +0000 (07:20 +0100)
Fixed a few places using bits OR wrongly for condition checks.

Tested-by: Chris Rorvick <chris@rorvick.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/line6/pcm.c

index 826158fe914930d91eacd718e97fead611a8a697..f740b4490d75798fc89077801e37730746fa3605 100644 (file)
@@ -131,7 +131,7 @@ int line6_pcm_acquire(struct snd_line6_pcm *line6pcm, int channels)
                   a bug, we therefore report an error if capturing is restarted
                   too soon.
                 */
-               if (line6pcm->active_urb_in | line6pcm->unlink_urb_in) {
+               if (line6pcm->active_urb_in || line6pcm->unlink_urb_in) {
                        dev_err(line6pcm->line6->ifcdev, "Device not yet ready\n");
                        err = -EBUSY;
                        goto pcm_acquire_error;
@@ -166,7 +166,7 @@ int line6_pcm_acquire(struct snd_line6_pcm *line6pcm, int channels)
                /*
                  See comment above regarding PCM restart.
                */
-               if (line6pcm->active_urb_out | line6pcm->unlink_urb_out) {
+               if (line6pcm->active_urb_out || line6pcm->unlink_urb_out) {
                        dev_err(line6pcm->line6->ifcdev, "Device not yet ready\n");
                        return -EBUSY;
                }