Assign variable directly instead of reassigning it after.

Signed-off-by: Alin Gabriel Serdean <[email protected]>
---
 datapath-windows/ovsext/Netlink/NetlinkBuf.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

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);
 
-- 
2.16.1.windows.1

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to