From: Ben Pfaff Date: Mon, 4 Jan 2010 21:21:32 +0000 (-0800) Subject: ofproto: Get rid of unused parameter to ofconn_destroy(). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c475ae67206ef40a32b07b886c2d619e9c170440;p=openvswitch ofproto: Get rid of unused parameter to ofconn_destroy(). --- diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c index ea6a8177..32757b57 100644 --- a/ofproto/ofproto.c +++ b/ofproto/ofproto.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009 Nicira Networks. + * Copyright (c) 2009, 2010 Nicira Networks. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -175,7 +175,7 @@ struct ofconn { }; static struct ofconn *ofconn_create(struct ofproto *, struct rconn *); -static void ofconn_destroy(struct ofconn *, struct ofproto *); +static void ofconn_destroy(struct ofconn *); static void ofconn_run(struct ofconn *, struct ofproto *); static void ofconn_wait(struct ofconn *); static void queue_tx(struct ofpbuf *msg, const struct ofconn *ofconn, @@ -679,7 +679,7 @@ ofproto_destroy(struct ofproto *p) LIST_FOR_EACH_SAFE (ofconn, next_ofconn, struct ofconn, node, &p->all_conns) { - ofconn_destroy(ofconn, p); + ofconn_destroy(ofconn); } dpif_close(p->dpif); @@ -1300,7 +1300,7 @@ ofconn_create(struct ofproto *p, struct rconn *rconn) } static void -ofconn_destroy(struct ofconn *ofconn, struct ofproto *p) +ofconn_destroy(struct ofconn *ofconn) { list_remove(&ofconn->node); rconn_destroy(ofconn->rconn); @@ -1334,7 +1334,7 @@ ofconn_run(struct ofconn *ofconn, struct ofproto *p) } if (ofconn != p->controller && !rconn_is_alive(ofconn->rconn)) { - ofconn_destroy(ofconn, p); + ofconn_destroy(ofconn); } }