Skip to contentSkip to conversation

cris:removed the unused variable

PATCH Applied [email protected] 4 participants 12 messages Apr 10, 2011 – Apr 12, 2011

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/5 cris:removed the unused variable

From: Wanlong Gao <[email protected]>

removed the unused variable "unsigned long tmp".

---
 arch/cris/arch-v32/kernel/ptrace.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
arch/cris/arch-v32/kernel/ptrace.c +0 -2
index 511ece9..42ed6c7 100644
@@ -115,8 +115,6 @@ void user_disable_single_step(struct task_struct *child)
 void
 ptrace_disable(struct task_struct *child)
 {
-	unsigned long tmp;
-
 	/* Deconfigure SPC and S-bit. */
 	user_disable_single_step(child);
 	put_reg(child, PT_SPC, 0);
Signature · 1 line
1.7.3
#1 lore raw

PATCH 2/5 mfd:removed the unused variable

From: Wanlong Gao <[email protected]>

removed the unused variable "u16 val" of wl1273-core.c.

---
 drivers/mfd/wl1273-core.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
drivers/mfd/wl1273-core.c +0 -1
index 04914f2..37af778 100644
@@ -153,7 +153,6 @@ out:
  */
 static int wl1273_fm_set_volume(struct wl1273_core *core, unsigned int volume)
 {
-	u16 val;
 	int r;
 
 	if (volume > WL1273_MAX_VOLUME)
Signature · 1 line
1.7.3
#4 lore raw

PATCH 3/5 net:removed the unused variable

In reply to [email protected]

From: Wanlong Gao <[email protected]>

removed the unused variable "np" of eth_v10.c.

---
 drivers/net/cris/eth_v10.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
drivers/net/cris/eth_v10.c +0 -1
index 9d267d3..f3b7741 100644
@@ -1132,7 +1132,6 @@ static irqreturn_t
 e100rxtx_interrupt(int irq, void *dev_id)
 {
 	struct net_device *dev = (struct net_device *)dev_id;
-	struct net_local *np = netdev_priv(dev);
 	unsigned long irqbits;
 
 	/*
Signature · 1 line
1.7.3
#6 lore raw

PATCH 4/5 scsi:removed the unused variable

In reply to [email protected]

From: Wanlong Gao <[email protected]>

removed the unused variable "oldto" of atari_NCR5380.c .

---
 drivers/scsi/atari_NCR5380.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
drivers/scsi/atari_NCR5380.c +0 -1
index ea439f9..24652f1 100644
@@ -914,7 +914,6 @@ static int NCR5380_queue_command_lck(Scsi_Cmnd *cmd, void (*done)(Scsi_Cmnd *))
 {
 	SETUP_HOSTDATA(cmd->device->host);
 	Scsi_Cmnd *tmp;
-	int oldto;
 	unsigned long flags;
 
 #if (NDEBUG & NDEBUG_NO_WRITE)
Signature · 1 line
1.7.3
#7 lore raw

PATCH 5/5 xfs:removed the unused variable

In reply to [email protected]

From: Wanlong Gao <[email protected]>

removed the unused variable "bdi" of xfs_buf.c .

---
 fs/xfs/linux-2.6/xfs_buf.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
fs/xfs/linux-2.6/xfs_buf.c +0 -2
index 5ea4020..a125b32 100644
@@ -657,8 +657,6 @@ xfs_buf_readahead(
 	xfs_off_t		ioff,
 	size_t			isize)
 {
-	struct backing_dev_info *bdi;
-
 	if (bdi_read_congested(target->bt_bdi))
 		return;
 
Signature · 1 line
1.7.3
#8 lore raw

Re: [PATCH 5/5] xfs:removed the unused variable

Quoted 14 lines · On Sun, Apr 10, 2011 at 10:10:29PM +0800, [email protected] wrote:

From: Wanlong Gao <[email protected]>

removed the unused variable "bdi" of xfs_buf.c .

---
 fs/xfs/linux-2.6/xfs_buf.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
fs/xfs/linux-2.6/xfs_buf.c +0 -0
index 5ea4020..a125b32 100644

fs/xfs/linux-2.6/xfs_buf.c xfs_buf_readahead( · line 661

Quoted 7 lines
fs/xfs/linux-2.6/xfs_buf.c +0 -2
@@ -657,8 +657,6 @@ xfs_buf_readahead(
 	xfs_off_t		ioff,
 	size_t			isize)
 {
-	struct backing_dev_info *bdi;
-
 	if (bdi_read_congested(target->bt_bdi))
 		return;

<sigh>

Doesn't anyone look anymore to see if a problem has already been reported before or fixed in the maintainers tree?

FYI, you're about the 5th person to send this same patch....

Cheers,

Dave.

Signature · 2 lines
Dave Chinner
[email protected]
#9 lore raw

Re: [PATCH 5/5] xfs:removed the unused variable

Quoted 25 lines · Dave Chinner
Quoted 14 lines · On Sun, Apr 10, 2011 at 10:10:29PM +0800, [email protected] wrote:

From: Wanlong Gao <[email protected]>

removed the unused variable "bdi" of xfs_buf.c .

---
 fs/xfs/linux-2.6/xfs_buf.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
fs/xfs/linux-2.6/xfs_buf.c +0 -0
index 5ea4020..a125b32 100644

fs/xfs/linux-2.6/xfs_buf.c xfs_buf_readahead( · line 661

Quoted 7 lines
fs/xfs/linux-2.6/xfs_buf.c +0 -2
@@ -657,8 +657,6 @@ xfs_buf_readahead(
 	xfs_off_t		ioff,
 	size_t			isize)
 {
-	struct backing_dev_info *bdi;
-
 	if (bdi_read_congested(target->bt_bdi))
 		return;

<sigh>

Quoted 5 lines

Doesn't anyone look anymore to see if a problem has already been reported before or fixed in the maintainers tree?

FYI, you're about the 5th person to send this same patch....

Sorry for the dupe, I'll look anymore next time .

Quoted 7 lines

Cheers,

Dave.
--
Dave Chinner
[email protected]

#3 lore raw

Re: [PATCH 2/5] mfd:removed the unused variable

In reply to Samuel Ortiz
Quoted 10 lines · Samuel Ortiz

Hi Wanlong,

Quoted 3 lines · On Sun, Apr 10, 2011 at 10:10:26PM +0800, [email protected] wrote:

From: Wanlong Gao <[email protected]>

removed the unused variable "u16 val" of wl1273-core.c.

Patch applied, thanks.

Cheers,
Samuel.

Thank you for your hard work to the open source .

Best regards .

Quoted 5 lines

--
Intel Open Source Technology Centre
http://oss.intel.com/