From: Takashi Iwai <tiwai@suse.de>
To: Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de>
Cc: Jaroslav Kysela <perex@perex.cz>, Tejun Heo <tj@kernel.org>,
linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org,
vamos-dev@i4.informatik.uni-erlangen.de
Subject: Re: [PATCH 3/3] sound/isa/gus: Remove dead CONFIG_SND_DEBUG_ROM
Date: Wed, 21 Jul 2010 14:57:01 +0200 [thread overview]
Message-ID: <s5hpqyh2dsy.wl%tiwai@suse.de> (raw)
In-Reply-To: <d96aeb5b8db5602de499b783897b6e8c285ee59b.1279708102.git.qy03fugy@stud.informatik.uni-erlangen.de>
At Wed, 21 Jul 2010 14:36:02 +0200,
Christian Dietrich wrote:
>
> CONFIG_SND_DEBUG_ROM doesn't exist in Kconfig, therefore it is never
> defined and we can remove all references to it. If it should stay as a
> debug flag, perhaps it shouldn't be named CONFIG_
>
> Signed-off-by: Christian Dietrich <qy03fugy@stud.informatik.uni-erlangen.de>
This is rather a debug code, so it's often useful to keep as is.
At bets, we can rename the ifdef without CONFIG_ prefix.
thanks,
Takashi
> ---
> sound/isa/gus/interwave.c | 8 --------
> 1 files changed, 0 insertions(+), 8 deletions(-)
>
> diff --git a/sound/isa/gus/interwave.c b/sound/isa/gus/interwave.c
> index c7b80e4..ac60c7d 100644
> --- a/sound/isa/gus/interwave.c
> +++ b/sound/isa/gus/interwave.c
> @@ -442,19 +442,11 @@ static void __devinit snd_interwave_detect_memory(struct snd_gus_card * gus)
> for (bank_pos = 0; bank_pos < 16L * 1024L * 1024L; bank_pos += 4L * 1024L * 1024L) {
> for (i = 0; i < 8; ++i)
> iwave[i] = snd_gf1_peek(gus, bank_pos + i);
> -#ifdef CONFIG_SND_DEBUG_ROM
> - printk(KERN_DEBUG "ROM at 0x%06x = %02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x\n", bank_pos,
> - iwave[0], iwave[1], iwave[2], iwave[3],
> - iwave[4], iwave[5], iwave[6], iwave[7]);
> -#endif
> if (strncmp(iwave, "INTRWAVE", 8))
> continue; /* first check */
> csum = 0;
> for (i = 0; i < sizeof(struct rom_hdr); i++)
> csum += snd_gf1_peek(gus, bank_pos + i);
> -#ifdef CONFIG_SND_DEBUG_ROM
> - printk(KERN_DEBUG "ROM checksum = 0x%x (computed)\n", csum);
> -#endif
> if (csum != 0)
> continue; /* not valid rom */
> gus->gf1.rom_banks++;
> --
> 1.7.0.4
>
prev parent reply other threads:[~2010-07-21 12:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-21 12:34 [PATCH 0/3] Removing dead code Christian Dietrich
2010-07-21 12:35 ` [PATCH 1/3] sound/oss: Remove dead CONFIG_SOFTOSS* Christian Dietrich
2010-07-21 13:03 ` Takashi Iwai
2010-07-21 12:35 ` [PATCH 2/3] sound/soc/atmel: Remove dead CONFIG_AT32_ENHANCED_PORTMUX Christian Dietrich
2010-07-21 12:50 ` Mark Brown
2010-07-21 12:36 ` [PATCH 3/3] sound/isa/gus: Remove dead CONFIG_SND_DEBUG_ROM Christian Dietrich
2010-07-21 12:57 ` Takashi Iwai [this message]
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=s5hpqyh2dsy.wl%tiwai@suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@alsa-project.org \
--cc=linux-kernel@vger.kernel.org \
--cc=perex@perex.cz \
--cc=qy03fugy@stud.informatik.uni-erlangen.de \
--cc=tj@kernel.org \
--cc=vamos-dev@i4.informatik.uni-erlangen.de \
/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