From: Ben Pfaff Date: Sun, 13 May 2012 23:56:01 +0000 (-0700) Subject: ofproto: Remove write-only variable. X-Git-Tag: sliver-openvswitch-1.8.90-0~48^2~444 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=4ceb7081c1fbd1bfa8c0e26cc45f3c803525fc3f;p=sliver-openvswitch.git ofproto: Remove write-only variable. Found by clang. Signed-off-by: Ben Pfaff --- diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c index 98bb91247..60dd36a40 100644 --- a/ofproto/ofproto.c +++ b/ofproto/ofproto.c @@ -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; }