All of lore.kernel.org
 help / color / mirror / Atom feed
From: Petri Koistinen <petri.koistinen@iki.fi>
To: linux-sound@vger.kernel.org
Subject: [PATCH] Remove one of sound/oss/cmpci.c compile warnings
Date: Tue, 28 Oct 2003 18:14:53 +0000	[thread overview]
Message-ID: <marc-linux-sound-106736555208217@msgid-missing> (raw)

Hi!

This patch removes this compile warning:

sound/oss/cmpci.c: In function `cm_release_mixdev':
sound/oss/cmpci.c:1465: warning: unused variable `s'

GCC doesn't seem to unstand that VALIDATE_STATE macro uses s variable.
I hope this is correct way to fix this.

Petri

--- linux-2.6/sound/oss/cmpci.c.orig	2003-10-28 19:54:27.000000000 +0200
+++ linux-2.6/sound/oss/cmpci.c	2003-10-28 19:55:50.000000000 +0200
@@ -1462,7 +1462,9 @@

 static int cm_release_mixdev(struct inode *inode, struct file *file)
 {
-	struct cm_state *s = (struct cm_state *)file->private_data;
+	struct cm_state *s;
+
+	s = (struct cm_state *)file->private_data;

 	VALIDATE_STATE(s);
 	return 0;

             reply	other threads:[~2003-10-28 18:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-28 18:14 Petri Koistinen [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-10-28 18:14 [PATCH] Remove one of sound/oss/cmpci.c compile warnings Petri Koistinen
2003-11-02  5:05 ` Rusty Russell
2003-11-02  5:05 Rusty Russell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-linux-sound-106736555208217@msgid-missing \
    --to=petri.koistinen@iki.fi \
    --cc=linux-sound@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.