[ovs-dev,07/14] datapath-windows: Cleanup Netlink.c

Message ID 20180709134056.7060-8-aserdean@ovn.org
State New
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/Netlink.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

Patch

diff --git a/datapath-windows/ovsext/Netlink/Netlink.c b/datapath-windows/ovsext/Netlink/Netlink.c
index 156732cdb..718adba39 100644
--- a/datapath-windows/ovsext/Netlink/Netlink.c
+++ b/datapath-windows/ovsext/Netlink/Netlink.c
@@ -563,9 +563,7 @@  UINT32
 NlMsgStartNested(PNL_BUFFER buf, UINT16 type)
 {
     UINT32 offset = NlBufSize(buf);
-    PCHAR nlaData = NULL;
-
-    nlaData = NlMsgPutTailUnspecUninit(buf, type, 0);
+    PCHAR nlaData = NlMsgPutTailUnspecUninit(buf, type, 0);
 
     if (!nlaData) {
         /* Value zero must be reated as error by the caller.