Skip to content

Commit

Permalink
bna: State Machine Fault Handling Cleanup
Browse files Browse the repository at this point in the history
Chnage details:
 - The module name is not used in case of state machine fault, hence no longer
   passing the module name to the fault handler.

Signed-off-by: Rasesh Mody <rmody@brocade.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Rasesh Mody authored and David S. Miller committed Jul 23, 2011
1 parent bd5a92e commit ac51f60
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 64 deletions.
46 changes: 23 additions & 23 deletions drivers/net/bna/bfa_ioc.c
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ bfa_ioc_sm_uninit(struct bfa_ioc *ioc, enum ioc_event event)
break;

default:
bfa_sm_fault(ioc, event);
bfa_sm_fault(event);
}
}

Expand Down Expand Up @@ -273,7 +273,7 @@ bfa_ioc_sm_reset(struct bfa_ioc *ioc, enum ioc_event event)
break;

default:
bfa_sm_fault(ioc, event);
bfa_sm_fault(event);
}
}

Expand Down Expand Up @@ -317,7 +317,7 @@ bfa_ioc_sm_enabling(struct bfa_ioc *ioc, enum ioc_event event)
break;

default:
bfa_sm_fault(ioc, event);
bfa_sm_fault(event);
}
}

Expand Down Expand Up @@ -365,7 +365,7 @@ bfa_ioc_sm_getattr(struct bfa_ioc *ioc, enum ioc_event event)
break;

default:
bfa_sm_fault(ioc, event);
bfa_sm_fault(event);
}
}

Expand Down Expand Up @@ -404,7 +404,7 @@ bfa_ioc_sm_op(struct bfa_ioc *ioc, enum ioc_event event)
break;

default:
bfa_sm_fault(ioc, event);
bfa_sm_fault(event);
}
}

Expand Down Expand Up @@ -435,7 +435,7 @@ bfa_ioc_sm_disabling(struct bfa_ioc *ioc, enum ioc_event event)
break;

default:
bfa_sm_fault(ioc, event);
bfa_sm_fault(event);
}
}

Expand Down Expand Up @@ -466,7 +466,7 @@ bfa_ioc_sm_disabled(struct bfa_ioc *ioc, enum ioc_event event)
break;

default:
bfa_sm_fault(ioc, event);
bfa_sm_fault(event);
}
}

Expand Down Expand Up @@ -513,7 +513,7 @@ bfa_ioc_sm_fail_retry(struct bfa_ioc *ioc, enum ioc_event event)
break;

default:
bfa_sm_fault(ioc, event);
bfa_sm_fault(event);
}
}

Expand Down Expand Up @@ -547,7 +547,7 @@ bfa_ioc_sm_fail(struct bfa_ioc *ioc, enum ioc_event event)
break;

default:
bfa_sm_fault(ioc, event);
bfa_sm_fault(event);
}
}

Expand Down Expand Up @@ -580,7 +580,7 @@ bfa_iocpf_sm_reset(struct bfa_iocpf *iocpf, enum iocpf_event event)
break;

default:
bfa_sm_fault(iocpf->ioc, event);
bfa_sm_fault(event);
}
}

Expand Down Expand Up @@ -632,7 +632,7 @@ bfa_iocpf_sm_fwcheck(struct bfa_iocpf *iocpf, enum iocpf_event event)
break;

default:
bfa_sm_fault(ioc, event);
bfa_sm_fault(event);
}
}

Expand Down Expand Up @@ -676,7 +676,7 @@ bfa_iocpf_sm_mismatch(struct bfa_iocpf *iocpf, enum iocpf_event event)
break;

default:
bfa_sm_fault(ioc, event);
bfa_sm_fault(event);
}
}

Expand Down Expand Up @@ -715,7 +715,7 @@ bfa_iocpf_sm_semwait(struct bfa_iocpf *iocpf, enum iocpf_event event)
break;

default:
bfa_sm_fault(ioc, event);
bfa_sm_fault(event);
}
}

Expand Down Expand Up @@ -763,7 +763,7 @@ bfa_iocpf_sm_hwinit(struct bfa_iocpf *iocpf, enum iocpf_event event)
break;

default:
bfa_sm_fault(ioc, event);
bfa_sm_fault(event);
}
}

Expand Down Expand Up @@ -814,7 +814,7 @@ bfa_iocpf_sm_enabling(struct bfa_iocpf *iocpf, enum iocpf_event event)
break;

default:
bfa_sm_fault(ioc, event);
bfa_sm_fault(event);
}
}

Expand Down Expand Up @@ -857,7 +857,7 @@ bfa_iocpf_sm_ready(struct bfa_iocpf *iocpf, enum iocpf_event event)
break;

default:
bfa_sm_fault(ioc, event);
bfa_sm_fault(event);
}
}

Expand Down Expand Up @@ -899,7 +899,7 @@ bfa_iocpf_sm_disabling(struct bfa_iocpf *iocpf, enum iocpf_event event)
break;

default:
bfa_sm_fault(ioc, event);
bfa_sm_fault(event);
}
}

Expand Down Expand Up @@ -928,7 +928,7 @@ bfa_iocpf_sm_disabling_sync(struct bfa_iocpf *iocpf, enum iocpf_event event)
break;

default:
bfa_sm_fault(ioc, event);
bfa_sm_fault(event);
}
}

Expand Down Expand Up @@ -958,7 +958,7 @@ bfa_iocpf_sm_disabled(struct bfa_iocpf *iocpf, enum iocpf_event event)
break;

default:
bfa_sm_fault(ioc, event);
bfa_sm_fault(event);
}
}

Expand Down Expand Up @@ -1010,7 +1010,7 @@ bfa_iocpf_sm_initfail_sync(struct bfa_iocpf *iocpf, enum iocpf_event event)
break;

default:
bfa_sm_fault(ioc, event);
bfa_sm_fault(event);
}
}

Expand Down Expand Up @@ -1039,7 +1039,7 @@ bfa_iocpf_sm_initfail(struct bfa_iocpf *iocpf, enum iocpf_event event)
break;

default:
bfa_sm_fault(ioc, event);
bfa_sm_fault(event);
}
}

Expand Down Expand Up @@ -1094,7 +1094,7 @@ bfa_iocpf_sm_fail_sync(struct bfa_iocpf *iocpf, enum iocpf_event event)
break;

default:
bfa_sm_fault(ioc, event);
bfa_sm_fault(event);
}
}

Expand All @@ -1116,7 +1116,7 @@ bfa_iocpf_sm_fail(struct bfa_iocpf *iocpf, enum iocpf_event event)
break;

default:
bfa_sm_fault(iocpf->ioc, event);
bfa_sm_fault(event);
}
}

Expand Down
42 changes: 21 additions & 21 deletions drivers/net/bna/bna_ctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ bna_llport_sm_stopped(struct bna_llport *llport,
break;

default:
bfa_sm_fault(llport->bna, event);
bfa_sm_fault(event);
}
}

Expand Down Expand Up @@ -409,7 +409,7 @@ bna_llport_sm_down(struct bna_llport *llport,
break;

default:
bfa_sm_fault(llport->bna, event);
bfa_sm_fault(event);
}
}

Expand Down Expand Up @@ -455,7 +455,7 @@ bna_llport_sm_up_resp_wait(struct bna_llport *llport,
break;

default:
bfa_sm_fault(llport->bna, event);
bfa_sm_fault(event);
}
}

Expand Down Expand Up @@ -497,7 +497,7 @@ bna_llport_sm_down_resp_wait(struct bna_llport *llport,
break;

default:
bfa_sm_fault(llport->bna, event);
bfa_sm_fault(event);
}
}

Expand Down Expand Up @@ -526,7 +526,7 @@ bna_llport_sm_up(struct bna_llport *llport,
break;

default:
bfa_sm_fault(llport->bna, event);
bfa_sm_fault(event);
}
}

Expand Down Expand Up @@ -563,7 +563,7 @@ bna_llport_sm_last_resp_wait(struct bna_llport *llport,
break;

default:
bfa_sm_fault(llport->bna, event);
bfa_sm_fault(event);
}
}

Expand Down Expand Up @@ -916,7 +916,7 @@ bna_port_sm_stopped(struct bna_port *port, enum bna_port_event event)
break;

default:
bfa_sm_fault(port->bna, event);
bfa_sm_fault(event);
}
}

Expand Down Expand Up @@ -956,7 +956,7 @@ bna_port_sm_mtu_init_wait(struct bna_port *port, enum bna_port_event event)
break;

default:
bfa_sm_fault(port->bna, event);
bfa_sm_fault(event);
}
}

Expand Down Expand Up @@ -1001,7 +1001,7 @@ bna_port_sm_pause_init_wait(struct bna_port *port,
break;

default:
bfa_sm_fault(port->bna, event);
bfa_sm_fault(event);
}
}

Expand All @@ -1022,7 +1022,7 @@ bna_port_sm_last_resp_wait(struct bna_port *port,
break;

default:
bfa_sm_fault(port->bna, event);
bfa_sm_fault(event);
}
}

Expand Down Expand Up @@ -1061,7 +1061,7 @@ bna_port_sm_started(struct bna_port *port,
break;

default:
bfa_sm_fault(port->bna, event);
bfa_sm_fault(event);
}
}

Expand All @@ -1086,7 +1086,7 @@ bna_port_sm_pause_cfg_wait(struct bna_port *port,
break;

default:
bfa_sm_fault(port->bna, event);
bfa_sm_fault(event);
}
}

Expand All @@ -1111,7 +1111,7 @@ bna_port_sm_rx_stop_wait(struct bna_port *port,
break;

default:
bfa_sm_fault(port->bna, event);
bfa_sm_fault(event);
}
}

Expand All @@ -1136,7 +1136,7 @@ bna_port_sm_mtu_cfg_wait(struct bna_port *port, enum bna_port_event event)
break;

default:
bfa_sm_fault(port->bna, event);
bfa_sm_fault(event);
}
}

Expand All @@ -1161,7 +1161,7 @@ bna_port_sm_chld_stop_wait(struct bna_port *port,
break;

default:
bfa_sm_fault(port->bna, event);
bfa_sm_fault(event);
}
}

Expand Down Expand Up @@ -1472,7 +1472,7 @@ bna_device_sm_stopped(struct bna_device *device,
break;

default:
bfa_sm_fault(device->bna, event);
bfa_sm_fault(event);
}
}

Expand Down Expand Up @@ -1512,7 +1512,7 @@ bna_device_sm_ioc_ready_wait(struct bna_device *device,
break;

default:
bfa_sm_fault(device->bna, event);
bfa_sm_fault(event);
}
}

Expand Down Expand Up @@ -1542,7 +1542,7 @@ bna_device_sm_ready(struct bna_device *device, enum bna_device_event event)
break;

default:
bfa_sm_fault(device->bna, event);
bfa_sm_fault(event);
}
}

Expand All @@ -1568,7 +1568,7 @@ bna_device_sm_port_stop_wait(struct bna_device *device,
break;

default:
bfa_sm_fault(device->bna, event);
bfa_sm_fault(event);
}
}

Expand All @@ -1589,7 +1589,7 @@ bna_device_sm_ioc_disable_wait(struct bna_device *device,
break;

default:
bfa_sm_fault(device->bna, event);
bfa_sm_fault(event);
}
}

Expand Down Expand Up @@ -1622,7 +1622,7 @@ bna_device_sm_failed(struct bna_device *device,
break;

default:
bfa_sm_fault(device->bna, event);
bfa_sm_fault(event);
}
}

Expand Down
Loading

0 comments on commit ac51f60

Please sign in to comment.