From: Dan Carpenter Date: Wed, 18 Nov 2009 08:31:57 +0000 (+0200) Subject: ALSA: remove unnecessary null check X-Git-Tag: v2.6.33-rc1~390^2~2^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bec145ae6f6978f0319e5600a742f45f76ecc4dd;p=pandora-kernel.git ALSA: remove unnecessary null check 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 Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed