Patchwork [v2,5/6] xilinx_axienet: avoid useless self-assignment

login
register
mail settings
Submitter Blue Swirl
Date Aug. 1, 2012, 6:21 p.m.
Message ID <9fd033f9a8d88b4e593c6aaee79880d403cc13b0.1343845033.git.blauwirbel@gmail.com>
Download mbox | patch
Permalink /patch/174566/
State New
Headers show

Comments

Blue Swirl - Aug. 1, 2012, 6:21 p.m.
Statement s=s; makes little sense, remove it. Spotted by Clang
compiler.

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
---
 hw/xilinx_axienet.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

Patch

diff --git a/hw/xilinx_axienet.c b/hw/xilinx_axienet.c
index e948505..e89a174 100644
--- a/hw/xilinx_axienet.c
+++ b/hw/xilinx_axienet.c
@@ -648,7 +648,6 @@  static ssize_t eth_rx(VLANClientState *nc, const uint8_t *buf, size_t size)
     uint16_t csum16;
     int i;
 
-    s = s;
     DENET(qemu_log("%s: %zd bytes\n", __func__, size));
 
     unicast = ~buf[0] & 0x1;