[ovs-dev,11/14] datapath-windows: Cleanup Recirc.c

Message ID 20180709134056.7060-12-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/Recirc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Patch

diff --git a/datapath-windows/ovsext/Recirc.c b/datapath-windows/ovsext/Recirc.c
index 2febf060d..d4d170e33 100644
--- a/datapath-windows/ovsext/Recirc.c
+++ b/datapath-windows/ovsext/Recirc.c
@@ -280,9 +280,8 @@  OvsAddDeferredActions(PNET_BUFFER_LIST nbl,
                       const PNL_ATTR actions)
 {
     POVS_DEFERRED_ACTION_QUEUE queue = OvsDeferredActionsQueueGet();
-    POVS_DEFERRED_ACTION deferredAction = NULL;
+    POVS_DEFERRED_ACTION deferredAction = OvsDeferredActionsQueuePush(queue);
 
-    deferredAction = OvsDeferredActionsQueuePush(queue);
     if (deferredAction) {
         deferredAction->nbl = nbl;
         deferredAction->actions = actions;