linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Petri Koistinen <petri.koistinen@iki.fi>
To: cltien@cmedia.com.tw, support@cmedia.com.tw
Cc: trivial@rustcorp.com.au, linux-sound@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: [PATCH] Remove one of sound/oss/cmpci.c compile warnings
Date: Tue, 28 Oct 2003 20:14:53 +0200 (EET)	[thread overview]
Message-ID: <Pine.LNX.4.58.0310282002530.4918@dsl-hkigw4g29.dial.inet.fi> (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:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-28 18:14 Petri Koistinen [this message]
2003-11-02  5:05 ` [PATCH] Remove one of sound/oss/cmpci.c compile warnings 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=Pine.LNX.4.58.0310282002530.4918@dsl-hkigw4g29.dial.inet.fi \
    --to=petri.koistinen@iki.fi \
    --cc=cltien@cmedia.com.tw \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sound@vger.kernel.org \
    --cc=support@cmedia.com.tw \
    --cc=trivial@rustcorp.com.au \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).