Unused variable warning in ac97_codec.c

Unused variable warning in ac97_codec.c

Post by Brian Gers » Sun, 23 Feb 2003 05:10:04

Kill unused variable.

                                Brian Gerst

[ ac97-warn-1 < 1K ]
--- linux-2.5.62-bk8/sound/pci/ac97/ac97_codec.c        2003-02-21 20:45:12.000000000 -0500

 int snd_ac97_tune_hardware(ac97_t *ac97, struct pci_dev *pci, struct ac97_quirk *quirk)
        unsigned short vendor, device;
-       struct ac97_quirk *q;

        pci_read_config_word(pci, PCI_SUBSYSTEM_VENDOR_ID, &vendor);
        pci_read_config_word(pci, PCI_SUBSYSTEM_ID, &device);


1. fix warning: unused variable powernow-k6.c

simple fix to remove compiler warning

===== arch/i386/kernel/cpu/cpufreq/powernow-k6.c 1.14 vs edited =====
--- 1.14/arch/i386/kernel/cpu/cpufreq/powernow-k6.c     Mon Mar 17 05:53:03 2003

 static int powernow_k6_cpu_init(struct cpufreq_policy *policy)
-       struct cpuinfo_x86 *c = cpu_data;
        unsigned int i;

        if (policy->cpu != 0)

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. invoking ld(1) with -z ld32=arg when arg takes a comma

3. GCC: "unused variable" warning not reported

4. Using a 4BG Seagate HD in a 7100

5. PATCH: split up ide-pci.c:setup_host_channel to silence unused variable warning

6. Text based windowing?

7. fix warning: unused variable longrun.c

8. Solaris 2.5 sendmail doesn't know the domain name

9. New: compiler warning from sound/pci/ac97/ac97_codec.c (fwd)

10. Kill warning in ac97_codec

11. used but uninitialized variable in ac97_codec

12. [8/8] fix unused function warning in drivers/block/floppy.c

13. warning and unused in sctp.h