ofproto: Remove write-only variable.
authorBen Pfaff <blp@nicira.com>
Sun, 13 May 2012 23:56:01 +0000 (16:56 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 14 May 2012 16:37:18 +0000 (09:37 -0700)
Found by clang.

Signed-off-by: Ben Pfaff <blp@nicira.com>
ofproto/ofproto.c

index 98bb912478c38f409be8236b497c2f7de3677edb..60dd36a409e534d7baf0f51e4e551613044f8e03 100644 (file)
@@ -3227,14 +3227,13 @@ handle_nxt_set_controller_id(struct ofconn *ofconn,
 static enum ofperr
 handle_barrier_request(struct ofconn *ofconn, const struct ofp_header *oh)
 {
-    struct ofp_header *ob;
     struct ofpbuf *buf;
 
     if (ofconn_has_pending_opgroups(ofconn)) {
         return OFPROTO_POSTPONE;
     }
 
-    ob = make_openflow_xid(sizeof *ob, OFPT10_BARRIER_REPLY, oh->xid, &buf);
+    make_openflow_xid(sizeof *oh, OFPT10_BARRIER_REPLY, oh->xid, &buf);
     ofconn_send_reply(ofconn, buf);
     return 0;
 }