linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] firewire: net: remove unused variable in fwnet_receive_broadcast()
@ 2012-12-03 13:11 Wei Yongjun
  2012-12-03 14:06 ` Stefan Richter
  0 siblings, 1 reply; 2+ messages in thread
From: Wei Yongjun @ 2012-12-03 13:11 UTC (permalink / raw)
  To: stefanr; +Cc: yongjun_wei, linux1394-devel, linux-kernel

From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>

The variable card is initialized but never used
otherwise, so remove the unused variable.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
---
 drivers/firewire/net.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/firewire/net.c b/drivers/firewire/net.c
index 638e1f7..e7a711f5 100644
--- a/drivers/firewire/net.c
+++ b/drivers/firewire/net.c
@@ -828,7 +828,6 @@ static void fwnet_receive_broadcast(struct fw_iso_context *context,
 {
 	struct fwnet_device *dev;
 	struct fw_iso_packet packet;
-	struct fw_card *card;
 	__be16 *hdr_ptr;
 	__be32 *buf_ptr;
 	int retval;
@@ -840,7 +839,6 @@ static void fwnet_receive_broadcast(struct fw_iso_context *context,
 	unsigned long flags;
 
 	dev = data;
-	card = dev->card;
 	hdr_ptr = header;
 	length = be16_to_cpup(hdr_ptr);
 


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

* Re: [PATCH -next] firewire: net: remove unused variable in fwnet_receive_broadcast()
  2012-12-03 13:11 [PATCH -next] firewire: net: remove unused variable in fwnet_receive_broadcast() Wei Yongjun
@ 2012-12-03 14:06 ` Stefan Richter
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Richter @ 2012-12-03 14:06 UTC (permalink / raw)
  To: Wei Yongjun; +Cc: yongjun_wei, linux1394-devel, linux-kernel

On Dec 03 Wei Yongjun wrote:
> The variable card is initialized but never used
> otherwise, so remove the unused variable.

Committed to linux1394.git.
-- 
Stefan Richter
-=====-===-- ==-- ---==
http://arcgraph.de/sr/

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

end of thread, other threads:[~2012-12-03 14:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-03 13:11 [PATCH -next] firewire: net: remove unused variable in fwnet_receive_broadcast() Wei Yongjun
2012-12-03 14:06 ` Stefan Richter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).