ALSA: usx2y: remove an unneeded check
authorDan Carpenter <dan.carpenter@oracle.com>
Sun, 28 Jul 2013 20:27:38 +0000 (23:27 +0300)
committerTakashi Iwai <tiwai@suse.de>
Mon, 29 Jul 2013 11:59:47 +0000 (13:59 +0200)
commit85054b2153f18eac16df9ff88913c98adea6a23e
tree24ad3ecc343b8eb4bf0fa77d667d162aad2b58a5
parentda7db6ad4da05a3109d0a31100e1ecd746a90fee
ALSA: usx2y: remove an unneeded check

The test here is always true because S[i].urb is an array not a pointer.
Also it's bogus because the intent was to test:
if (S->urb[i]) {
instead of:
if (S[i].urb) {

Anyway, usb_kill_urb() and usb_free_urb() accept NULL pointers so we can
just remove this.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/usx2y/usbusx2y.c
This page took 0.025378 seconds and 5 git commands to generate.