style(9): white space after ; and around binary operators
in for() loops. Also, use 'while', where only the conditional test of 'for' was used. Reviewed by: sjg
This commit is contained in:
@@ -686,7 +686,7 @@ scsi_op_desc(uint16_t opcode, struct scsi_inquiry_data *inq_data)
|
||||
opmask = 1 << pd_type;
|
||||
|
||||
for (j = 0; j < num_tables; j++) {
|
||||
for (i = 0;i < num_ops[j] && table[j][i].opcode <= opcode; i++){
|
||||
for (i = 0; i < num_ops[j] && table[j][i].opcode <= opcode; i++) {
|
||||
if ((table[j][i].opcode == opcode)
|
||||
&& ((table[j][i].opmask & opmask) != 0))
|
||||
return(table[j][i].desc);
|
||||
|
||||
@@ -2302,7 +2302,7 @@ ses_print_addl_data_sas_type0(char *sesname, struct sbuf *sbp,
|
||||
sbuf_putc(sbp, '\n');
|
||||
if (addl->proto_data.sasdev_phys == NULL)
|
||||
return;
|
||||
for (i = 0;i < addl->proto_hdr.sas->base_hdr.num_phys;i++) {
|
||||
for (i = 0; i < addl->proto_hdr.sas->base_hdr.num_phys; i++) {
|
||||
phy = &addl->proto_data.sasdev_phys[i];
|
||||
sbuf_printf(sbp, "%s: phy %d:", sesname, i);
|
||||
if (ses_elm_sas_dev_phy_sata_dev(phy))
|
||||
@@ -2349,7 +2349,7 @@ ses_print_addl_data_sas_type1(char *sesname, struct sbuf *sbp,
|
||||
sbuf_printf(sbp, "Expander: %d phys", num_phys);
|
||||
if (addl->proto_data.sasexp_phys == NULL)
|
||||
return;
|
||||
for (i = 0;i < num_phys;i++) {
|
||||
for (i = 0; i < num_phys; i++) {
|
||||
exp_phy = &addl->proto_data.sasexp_phys[i];
|
||||
sbuf_printf(sbp, "%s: phy %d: connector %d other %d\n",
|
||||
sesname, i, exp_phy->connector_index,
|
||||
@@ -2360,7 +2360,7 @@ ses_print_addl_data_sas_type1(char *sesname, struct sbuf *sbp,
|
||||
sbuf_printf(sbp, "Port: %d phys", num_phys);
|
||||
if (addl->proto_data.sasport_phys == NULL)
|
||||
return;
|
||||
for (i = 0;i < num_phys;i++) {
|
||||
for (i = 0; i < num_phys; i++) {
|
||||
port_phy = &addl->proto_data.sasport_phys[i];
|
||||
sbuf_printf(sbp,
|
||||
"%s: phy %d: id %d connector %d other %d\n",
|
||||
|
||||
Reference in New Issue
Block a user