All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] remove unused variable
@ 2007-09-25 13:36 Laurent Vivier
       [not found] ` <11907273951640-git-send-email-Laurent.Vivier-6ktuUTfB/bM@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Laurent Vivier @ 2007-09-25 13:36 UTC (permalink / raw)
  To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f; +Cc: Laurent Vivier

Remove unused variable introduced by commit 5ed6627ee96f0a6802d99e71879d98610ba17e01
(I missed it, sorry)

Signed-off-by: Laurent Vivier <Laurent.Vivier-6ktuUTfB/bM@public.gmane.org>
---
 drivers/kvm/x86_emulate.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/drivers/kvm/x86_emulate.c b/drivers/kvm/x86_emulate.c
index 585cccf..ccdd76f 100644
--- a/drivers/kvm/x86_emulate.c
+++ b/drivers/kvm/x86_emulate.c
@@ -522,7 +522,6 @@ x86_decode_insn(struct x86_emulate_ctxt *ctxt, struct x86_emulate_ops *ops)
 {
 	struct decode_cache *c = &ctxt->decode;
 	u8 sib, rex_prefix = 0;
-	unsigned int i;
 	int rc = 0;
 	int mode = ctxt->mode;
 	int index_reg = 0, base_reg = 0, scale, rip_relative = 0;
-- 
1.5.2.4


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

^ permalink raw reply related	[flat|nested] 9+ 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; 9+ 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] 9+ messages in thread
* [PATCH] remove unused variable
@ 2011-09-26 12:37 Czarnowska, Anna
  0 siblings, 0 replies; 9+ messages in thread
From: Czarnowska, Anna @ 2011-09-26 12:37 UTC (permalink / raw)
  To: NeilBrown
  Cc: linux-raid@vger.kernel.org, Williams, Dan J, Labun, Marcin,
	Grabowski, Grzegorz

From ccbe8fd4b762d88184c0fea61abb966cf8c99cc9 Mon Sep 17 00:00:00 2001
From: Anna Czarnowska <anna.czarnowska@intel.com>
Date: Mon, 26 Sep 2011 11:54:04 +0200
Subject: [PATCH] remove unused variable

reservation is calculated below in imsm_min_reserved_sectors()
so this variable is not needed

Signed-off-by: Anna Czarnowska <anna.czarnowska@intel.com>
---
 super-intel.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/super-intel.c b/super-intel.c
index 07d47b5..75b432d 100644
--- a/super-intel.c
+++ b/super-intel.c
@@ -988,9 +988,8 @@ static unsigned long long min_acceptable_spare_size_imsm(struct supertype *st)
 	struct dl *dl;
 	struct extent *e;
 	int i;
 	unsigned long long rv = 0;
-	__u32 reservation;
 
 	if (!super)
 		return rv;
 	/* find first active disk in array */
@@ -1006,9 +1005,8 @@ static unsigned long long min_acceptable_spare_size_imsm(struct supertype *st)
 	for (i = 0; e[i].size; i++)
 		continue;
 	if (i > 0)
 		rv = e[i-1].start + e[i-1].size;
-	reservation = __le32_to_cpu(dl->disk.total_blocks) - e[i].start;
 	free(e);
 
 	/* add the amount of space needed for metadata */
 	rv = rv + imsm_min_reserved_sectors(super);
-- 
1.7.4


^ permalink raw reply related	[flat|nested] 9+ messages in thread
* [PATCH] Remove unused variable
@ 2011-05-04 17:32 Claudio Takahasi
  2011-05-05  9:14 ` Johan Hedberg
  0 siblings, 1 reply; 9+ messages in thread
From: Claudio Takahasi @ 2011-05-04 17:32 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Claudio Takahasi

---
 src/adapter.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/src/adapter.c b/src/adapter.c
index 8dbd62c..426df15 100644
--- a/src/adapter.c
+++ b/src/adapter.c
@@ -3255,8 +3255,6 @@ void adapter_add_connection(struct btd_adapter *adapter,
 void adapter_remove_connection(struct btd_adapter *adapter,
 						struct btd_device *device)
 {
-	bdaddr_t bdaddr;
-
 	DBG("");
 
 	if (!g_slist_find(adapter->connections, device)) {
@@ -3268,9 +3266,6 @@ void adapter_remove_connection(struct btd_adapter *adapter,
 
 	adapter->connections = g_slist_remove(adapter->connections, device);
 
-	/* clean pending HCI cmds */
-	device_get_address(device, &bdaddr);
-
 	if (device_is_authenticating(device))
 		device_cancel_authentication(device, TRUE);
 
-- 
1.7.5.rc3


^ permalink raw reply related	[flat|nested] 9+ messages in thread
* [PATCH] Remove unused variable.
@ 2008-06-20 15:05 Bernhard Walle
  2008-06-24 11:34 ` Ingo Molnar
  0 siblings, 1 reply; 9+ 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 related	[flat|nested] 9+ messages in thread
* [PATCH] remove unused variable
@ 2005-11-22 14:58 Alex Riesen
  0 siblings, 0 replies; 9+ messages in thread
From: Alex Riesen @ 2005-11-22 14:58 UTC (permalink / raw)
  To: Lukas Sandström; +Cc: git, Junio C Hamano

[-- Attachment #1: Type: text/plain, Size: 36 bytes --]

It is just assigned, nothing more.

[-- Attachment #2: 0002-remove-unused-variable.txt --]
[-- Type: text/plain, Size: 672 bytes --]

Subject: [PATCH] remove unused variable

Signed-off-by: Alex Riesen <ariesen@harmanbecker.com>


---

 pack-redundant.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

applies-to: da2488b3948b36edb6f468ad16e247d500679f01
0aeca0da8c4184a8ace0f70ff611527c7f2df75a
diff --git a/pack-redundant.c b/pack-redundant.c
index 3681170..8b37da9 100644
--- a/pack-redundant.c
+++ b/pack-redundant.c
@@ -493,12 +493,10 @@ static void load_all_objects(void)
 {
 	struct pack_list *pl = local_packs;
 	struct llist_item *hint, *l;
-	int i;
 
 	llist_init(&all_objects);
 
 	while (pl) {
-		i = 0;
 		hint = NULL;
 		l = pl->all_objects->front;
 		while (l) {
---
0.99.9.GIT

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

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

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-25 13:36 [PATCH] remove unused variable Laurent Vivier
     [not found] ` <11907273951640-git-send-email-Laurent.Vivier-6ktuUTfB/bM@public.gmane.org>
2007-09-27  9:46   ` Avi Kivity
  -- strict thread matches above, loose matches on Subject: below --
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
2011-09-26 12:37 [PATCH] remove " Czarnowska, Anna
2011-05-04 17:32 [PATCH] Remove " Claudio Takahasi
2011-05-05  9:14 ` Johan Hedberg
2008-06-20 15:05 Bernhard Walle
2008-06-24 11:34 ` Ingo Molnar
2005-11-22 14:58 [PATCH] remove " Alex Riesen

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.