diff options
Diffstat (limited to 'usr/src/lib/cfgadm_plugins/ib')
-rw-r--r-- | usr/src/lib/cfgadm_plugins/ib/common/cfga_ib.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/usr/src/lib/cfgadm_plugins/ib/common/cfga_ib.c b/usr/src/lib/cfgadm_plugins/ib/common/cfga_ib.c index 6186f187e0..e9585ef40a 100644 --- a/usr/src/lib/cfgadm_plugins/ib/common/cfga_ib.c +++ b/usr/src/lib/cfgadm_plugins/ib/common/cfga_ib.c @@ -21,6 +21,7 @@ /* * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. + * Copyright 2018 OmniOS Community Edition (OmniOSce) Association. */ #include "cfga_ib.h" @@ -73,7 +74,7 @@ void cfga_msg(struct cfga_msg *, const char *); cfga_err_t cfga_help(struct cfga_msg *, const char *, cfga_flags_t); static int ib_confirm(struct cfga_confirm *, char *); -static char *ib_get_devicepath(const char *); +static char *ib_get_devicepath(const char *); /* External function prototypes */ @@ -194,7 +195,7 @@ static char *ib_service_subopts[] = { /* Communication Service name : "port" or "vppa" or "hca-svc" */ static char *comm_name = NULL; -char *service_name = NULL; /* service name */ +char *service_name = NULL; /* service name */ ib_service_type_t service_type = IB_NONE; /* service type */ @@ -1654,14 +1655,12 @@ cfga_list_ext(const char *ap_id, cfga_list_data_t **ap_id_list, int *nlistp, cfga_list_data_t *clp = NULL; if ((rv = ib_verify_params(ap_id, options, errstring)) != CFGA_IB_OK) { - (void) cfga_help(NULL, options, flags); return (ib_err_msg(errstring, rv, ap_id, errno)); } /* make sure we have a valid ap_id_list */ if (ap_id_list == NULL || nlistp == NULL) { DPRINTF("cfga_list_ext: list = NULL or nlistp = NULL\n"); - (void) cfga_help(NULL, options, flags); return (ib_err_msg(errstring, CFGA_IB_INVAL_ARG_ERR, ap_id, errno)); } @@ -1717,7 +1716,7 @@ cfga_list_ext(const char *ap_id, cfga_list_data_t **ap_id_list, int *nlistp, /* * *nlistp contains to how many APIDs to show w/ cfgadm -l. * If ap_id is "fabric" then - * *nlistp is all Dynamic Apids + One more for "fabric" + * *nlistp is all Dynamic Apids + One more for "fabric" * If ap_id is "HCA" ap_id then * *nlistp is 1 * Note that each HCA is a static APID, so nlistp will be 1 always |