ALSA: remove unnecessary null check
authorDan Carpenter <error27@gmail.com>
Wed, 18 Nov 2009 08:31:57 +0000 (10:31 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 18 Nov 2009 08:59:40 +0000 (09:59 +0100)
This function is only called from snd_ctl_ioctl() and the file parameter
can never be null so there is no need to check it here.

We dereference file at the start of the function:
        struct snd_card *card = file->card;
and it confuses static checkers to dereference a pointer before
checking it.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

No differences found