diff options
author | Tomas Jasek <[email protected]> | 2017-03-03 13:45:48 +0100 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2017-03-06 22:48:49 -0500 |
commit | 33cc559a81397bc813c392617d40ddfdfa3cffbd (patch) | |
tree | a5a5f52b443050198daedea31f2208c441cfa7ec /tools/perf/scripts/python/export-to-postgresql.py | |
parent | fd2b18b4a7bf01453324733a18297ae9a197a4ae (diff) |
scsi: lpfc: replace init_timer by setup_timer
This patch shortens every init_timer in lpfc module followed by function
and data assignment using setup_timer. This is purely cleanup patch, it
does not add new functionality nor remove any existing functionality.
An init_timer call in this form:
init_timer(&vport->fc_disctmo);
vport->fc_disctmo.function = lpfc_disc_timeout;
vport->fc_disctmo.data = vport;
is shortened to:
setup_timer(&vport->fc_disctmo, lpfc_disc_timeout, vport);
It increases readability and reduces chances of mistakes done by
developers.
Signed-off-by: Tomas Jasek <[email protected]>
Signed-off-by: Jiri Slaby <[email protected]>
Cc: James Smart <[email protected]>
Cc: Dick Kennedy <[email protected]>
Cc: "James E.J. Bottomley" <[email protected]>
Cc: "Martin K. Petersen" <[email protected]>
Cc: <[email protected]>
Acked-by: James Smart <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions