ALSA: snd-usb-caiaq: fix smatch warnings
authorDaniel Mack <zonque@gmail.com>
Mon, 4 Mar 2013 11:50:05 +0000 (12:50 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 7 Mar 2013 08:24:12 +0000 (09:24 +0100)
commit2dad9402192250d4061332b6a9be71ebf8493c49
treed3331b04ee77b962361f20e49a2e491d4ebbddb4
parentf1f6b8f65ff08afed4532b88de1a3bbea773787f
ALSA: snd-usb-caiaq: fix smatch warnings

Fix three smatch warnings recently introduced:

sound/usb/caiaq/device.c:166 usb_ep1_command_reply_dispatch() warn:
  variable dereferenced before check 'cdev' (see line 163)
sound/usb/caiaq/device.c:517 snd_disconnect() warn: variable
  dereferenced before check 'card' (see line 514)
sound/usb/caiaq/input.c:510 snd_usb_caiaq_ep4_reply_dispatch() warn:
  variable dereferenced before check 'cdev' (see line 506)

Signed-off-by: Daniel Mack <zonque@gmail.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/caiaq/device.c
sound/usb/caiaq/input.c