mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Remove unused variable.
@ 2008-06-20 15:05 Bernhard Walle
  2008-06-24 11:34 ` Ingo Molnar
  0 siblings, 1 reply; 3+ messages in thread
From: Bernhard Walle @ 2008-06-20 15:05 UTC (permalink / raw)
  To: x86; +Cc: sassmann, linux-kernel, Bernhard Walle

This patch just fixes the compiler warning:

  drivers/pci/quirks.c: In function ‘quirk_reroute_to_boot_interrupts_intel’:
  drivers/pci/quirks.c:1375: warning: unused variable ‘i’


Signed-off-by: Bernhard Walle <bwalle@suse.de>
---
 drivers/pci/quirks.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
index 4b5b49e..292cf26 100644
--- a/drivers/pci/quirks.c
+++ b/drivers/pci/quirks.c
@@ -1372,8 +1372,6 @@ DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL,	0x260b, quirk_intel_pcie_pm);
  */
 static void quirk_reroute_to_boot_interrupts_intel(struct pci_dev *dev)
 {
-	int i;
-
 	if (noioapicquirk)
 		return;
 
-- 
1.5.4.5


^ permalink raw reply	[flat|nested] 3+ messages in thread
* drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.c:1812: possible pointless variable ?
@ 2016-06-27 10:00 David Binderman
  2016-06-30 16:38 ` [PATCH] Remove unused variable Matthias Beyer
  0 siblings, 1 reply; 3+ messages in thread
From: David Binderman @ 2016-06-27 10:00 UTC (permalink / raw)
  To: alexander.deucher, christian.koenig, David Airlie, dri-devel,
	dcb314, Linux Kernel Mailing List

Hello there,

linux-4.7-rc5/drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.c:1812]:
(style) Variable 'stretch_amount2' is assigned a value that is never
used.

Source code is

    else if (stretch_amount == 3 || stretch_amount == 4)
        stretch_amount2 = 1;

Suggest either use the variable in some way, or delete it.

Regards

David Binderman

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

end of thread, other threads:[~2016-06-30 16:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-20 15:05 [PATCH] Remove unused variable Bernhard Walle
2008-06-24 11:34 ` Ingo Molnar
2016-06-27 10:00 drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.c:1812: possible pointless variable ? David Binderman
2016-06-30 16:38 ` [PATCH] Remove unused variable Matthias Beyer

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

all inboxes | Powered by JetHome®