public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix a compile warning under gcc-4.2.3.
@ 2008-02-20 17:23 Joshua Roys
  2008-02-21  8:48 ` [PATCH] [alsa-devel] " Clemens Ladisch
  0 siblings, 1 reply; 3+ messages in thread
From: Joshua Roys @ 2008-02-20 17:23 UTC (permalink / raw)
  To: linux-kernel; +Cc: Joshua Roys

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@gmail.com>
---
 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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-02-21 11:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-20 17:23 [PATCH] Fix a compile warning under gcc-4.2.3 Joshua Roys
2008-02-21  8:48 ` [PATCH] [alsa-devel] " Clemens Ladisch
2008-02-21 11:19   ` [alsa-devel] [PATCH] " Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox