[PATCH] Fix a compile warning under gcc-4.2.3.

From: Joshua Roys
Date: Wed Feb 20 2008 - 12:31:32 EST


sound/core/init.c: In function âsnd_card_disconnectâ:
sound/core/init.c:307: warning: the address of âsnd_shutdown_f_opsâ will always evaluate as âtrueâ

Signed-off-by: Joshua Roys <roysjosh@xxxxxxxxx>
---
sound/core/init.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/sound/core/init.c b/sound/core/init.c
index 2cb7099..1afc58b 100644
--- a/sound/core/init.c
+++ b/sound/core/init.c
@@ -304,7 +304,6 @@ int snd_card_disconnect(struct snd_card *card)
list_add(&mfile->shutdown_list, &shutdown_files);
spin_unlock(&shutdown_lock);

- fops_get(&snd_shutdown_f_ops);
mfile->file->f_op = &snd_shutdown_f_ops;

mfile = mfile->next;
--
1.5.4.2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/