-/* $OpenBSD: qla.c,v 1.40 2014/05/17 11:51:21 jmatthew Exp $ */
+/* $OpenBSD: qla.c,v 1.41 2014/05/21 23:01:43 jmatthew Exp $ */
/*
* Copyright (c) 2011 David Gwynne <dlg@openbsd.org>
struct qla_fc_port *port;
struct qla_get_port_db *pdb;
u_int64_t node_name, port_name;
- u_int32_t location;
int flags, ret;
ret = qla_get_port_db(sc, loopid, sc->sc_scratch);
/* put in a fake port to prevent use of this loop id */
printf("%s: loop id %d used, but can't see what's using it\n",
DEVNAME(sc), loopid);
- location = QLA_LOCATION_PORT_ID(portid);
node_name = 0;
port_name = 0;
flags = 0;
} else {
pdb = QLA_DMA_KVA(sc->sc_scratch);
- location = QLA_LOCATION_PORT_ID(portid);
node_name = betoh64(pdb->node_name);
port_name = betoh64(pdb->port_name);
flags = 0;
DEVNAME(sc));
return (1);
}
- port->location = location;
+ port->location = QLA_LOCATION_PORT_ID(portid);
port->port_name = port_name;
port->node_name = node_name;
port->loopid = loopid;