diff options
author | Miguel Boton <mboton@gmail.com> | 2008-01-13 06:03:53 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2008-01-31 11:29:56 -0500 |
commit | bc9abce0de0b180817bc7e9f73145ef0b6a464ef (patch) | |
tree | c0da48067ad4318a32d3c35249214806a64a6236 /sound/core | |
parent | 52a1d4f9d6e40c2473a85105cb5e055914a4779d (diff) |
[ALSA] fix compilation warning in GCC
'snd_shutdown_f_ops' is not a pointer so its address will never be NULL.
GCC will complain because 'fops_get' will do an unnecessary check because
'&snd_shutdown_f_ops' is always true.
Signed-off-by: Miguel Boton <mboton@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'sound/core')
-rw-r--r-- | sound/core/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/init.c b/sound/core/init.c index dc06e79ca09f..e3338d6071ef 100644 --- a/sound/core/init.c +++ b/sound/core/init.c | |||
@@ -339,8 +339,8 @@ int snd_card_disconnect(struct snd_card *card) | |||
339 | list_add(&mfile->shutdown_list, &shutdown_files); | 339 | list_add(&mfile->shutdown_list, &shutdown_files); |
340 | spin_unlock(&shutdown_lock); | 340 | spin_unlock(&shutdown_lock); |
341 | 341 | ||
342 | fops_get(&snd_shutdown_f_ops); | ||
343 | mfile->file->f_op = &snd_shutdown_f_ops; | 342 | mfile->file->f_op = &snd_shutdown_f_ops; |
343 | fops_get(mfile->file->f_op); | ||
344 | 344 | ||
345 | mfile = mfile->next; | 345 | mfile = mfile->next; |
346 | } | 346 | } |