[ovs-dev,08/14] datapath-windows: Cleanup NetlinkBuf.c

Message ID 20180709134056.7060-9-aserdean@ovn.org
State Changes Requested
Headers show
Series
  • Cleanup datapath-windows
Related show

Commit Message

Alin Gabriel Serdean July 9, 2018, 1:40 p.m.
Assign variable directly instead of reassigning it after.

Signed-off-by: Alin Gabriel Serdean <aserdean@ovn.org>
---
 datapath-windows/ovsext/Netlink/NetlinkBuf.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

Patch

diff --git a/datapath-windows/ovsext/Netlink/NetlinkBuf.c b/datapath-windows/ovsext/Netlink/NetlinkBuf.c
index 639b6e50d..6722a55b8 100644
--- a/datapath-windows/ovsext/Netlink/NetlinkBuf.c
+++ b/datapath-windows/ovsext/Netlink/NetlinkBuf.c
@@ -334,9 +334,7 @@  static __inline VOID
 _NlBufCopyAtOffsetUnsafe(PNL_BUFFER nlBuf, PCHAR data,
                          UINT32 len, UINT32 offset)
 {
-    PCHAR dest = NULL;
-
-    dest = nlBuf->head + offset;
+    PCHAR dest = nlBuf->head + offset;
 
     RtlMoveMemory(dest+len, dest, NL_BUF_USED_SPACE(nlBuf) - offset);