[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 2/2] Remove unnecessary assignment of EthernetHeader


  • To: win-pv-devel@xxxxxxxxxxxxxxxxxxxx
  • From: Paul Durrant <xadimgnik@xxxxxxxxx>
  • Date: Thu, 14 Mar 2024 10:33:06 +0000
  • Delivery-date: Thu, 14 Mar 2024 10:33:14 +0000
  • List-id: Developer list for the Windows PV Drivers subproject <win-pv-devel.lists.xenproject.org>

On 05/03/2024 15:33, Owen Smith wrote:
BaseVa and EthernetHeader are not used after this point in the function,
remove the unnecessary assignment

Signed-off-by: Owen Smith <owen.smith@xxxxxxxxx>

Reviewed-by: Paul Durrant <paul@xxxxxxx>

---
  src/xenvif/receiver.c | 4 ----
  1 file changed, 4 deletions(-)

diff --git a/src/xenvif/receiver.c b/src/xenvif/receiver.c
index 37e2c60..df5ed6f 100644
--- a/src/xenvif/receiver.c
+++ b/src/xenvif/receiver.c
@@ -469,10 +469,6 @@ ReceiverRingProcessTag(
Info->Length -= sizeof (ETHERNET_TAG); - BaseVa += Packet->Offset;
-
-    EthernetHeader = (PETHERNET_HEADER)(BaseVa + Info->EthernetHeader.Offset);
-
      ASSERT3U(PayloadLength, ==, Packet->Length - Info->Length);
  }




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.