[ofa-general] [PATCH V2][TRIVIAL] management: Remove extraneous semicolon from several files
Dotan Barak
dotanb at dev.mellanox.co.il
Tue Mar 25 04:54:48 PDT 2008
Remove extraneous semicolon from several components in the management.
Signed-off-by: Dotan Barak <dotanb at dev.mellanox.co.il>
---
diff --git a/infiniband-diags/src/saquery.c b/infiniband-diags/src/saquery.c
index 523a4c6..ed61721 100644
--- a/infiniband-diags/src/saquery.c
+++ b/infiniband-diags/src/saquery.c
@@ -1596,7 +1596,7 @@ main(int argc, char **argv)
requested_lid = (ib_net16_t)strtoul(argv[0], NULL, 0);
requested_lid_flag++;
} else if (node_print_desc == NAME_OF_GUID) {
- requested_guid = (ib_net64_t)strtoul(argv[0], NULL, 0);;
+ requested_guid = (ib_net64_t)strtoul(argv[0], NULL, 0);
requested_guid_flag++;
} else {
requested_name = argv[0];
diff --git a/libibmad/src/fields.c b/libibmad/src/fields.c
index 9118729..21f98cf 100644
--- a/libibmad/src/fields.c
+++ b/libibmad/src/fields.c
@@ -439,7 +439,7 @@ _get_field(void *buf, int base_offs, ib_field_t *f)
void
_set_array(void *buf, int base_offs, ib_field_t *f, void *val)
{
- int bitoffs = f->bitoffs;;
+ int bitoffs = f->bitoffs;
if (f->bitlen < 32)
bitoffs = BE_TO_BITSOFFS(bitoffs, f->bitlen);
@@ -450,7 +450,7 @@ _set_array(void *buf, int base_offs, ib_field_t *f, void *val)
void
_get_array(void *buf, int base_offs, ib_field_t *f, void *val)
{
- int bitoffs = f->bitoffs;;
+ int bitoffs = f->bitoffs;
if (f->bitlen < 32)
bitoffs = BE_TO_BITSOFFS(bitoffs, f->bitlen);
diff --git a/opensm/opensm/osm_ucast_lash.c b/opensm/opensm/osm_ucast_lash.c
index 0735aed..74cdd7f 100644
--- a/opensm/opensm/osm_ucast_lash.c
+++ b/opensm/opensm/osm_ucast_lash.c
@@ -911,7 +911,7 @@ static int init_lash_structures(lash_t * p_lash)
}
// initialise num_mst_in_lane[num_switches], default 0
- p_lash->num_mst_in_lane = (int *)malloc(num_switches * sizeof(int));;
+ p_lash->num_mst_in_lane = (int *)malloc(num_switches * sizeof(int));
if (p_lash->num_mst_in_lane == NULL)
goto Exit_Mem_Error;
memset(p_lash->num_mst_in_lane, 0,
More information about the general
mailing list