diff mbox series

[ibsim,09/23] sim_net.c: Delete function 'new_hca'

Message ID 20190102131318.5765-9-honli@redhat.com (mailing list archive)
State Not Applicable
Headers show
Series [ibsim,01/23] move sim_cmd_file into ibsim/sim_cmd.c | expand

Commit Message

Honggang LI Jan. 2, 2019, 1:13 p.m. UTC
Signed-off-by: Honggang Li <honli@redhat.com>
---
 ibsim/sim_net.c | 8 --------
 1 file changed, 8 deletions(-)

Comments

Hal Rosenstock Jan. 3, 2019, 3:40 p.m. UTC | #1
On 1/2/2019 8:13 AM, Honggang Li wrote:
> Signed-off-by: Honggang Li <honli@redhat.com>

Thanks. Applied.

-- Hal
diff mbox series

Patch

diff --git a/ibsim/sim_net.c b/ibsim/sim_net.c
index a62d39d39174..8f285e6d8f1a 100644
--- a/ibsim/sim_net.c
+++ b/ibsim/sim_net.c
@@ -279,11 +279,6 @@  static Switch *new_switch(Node * nd, int set_esp0)
 	return sw;
 }
 
-static int new_hca(Node * nd)
-{
-	return 0;
-}
-
 static int build_nodeid(char *nodeid, size_t len, char *base)
 {
 	if (strchr(base, '#') || strchr(base, '@')) {
@@ -870,9 +865,6 @@  static int parse_endnode(int fd, char *line, int type)
 	if (!(nd = new_node(type, nodeid, nodedesc, ports)))
 		return 0;
 
-	if (new_hca(nd) < 0)
-		return 0;
-
 	r = parse_ports(fd, nd, type, ports);
 
 	PDEBUG("%d ports found", r);