summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/a100u2w.c
diff options
context:
space:
mode:
authorTomas Jasek <tomsik68@gmail.com>2017-03-03 13:45:48 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2017-03-07 04:48:49 +0100
commit33cc559a81397bc813c392617d40ddfdfa3cffbd (patch)
treea5a5f52b443050198daedea31f2208c441cfa7ec /drivers/scsi/a100u2w.c
parentscsi: qedf: Use vsprintf extension %pad (diff)
downloadlinux-33cc559a81397bc813c392617d40ddfdfa3cffbd.tar.xz
linux-33cc559a81397bc813c392617d40ddfdfa3cffbd.zip
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 <tomsik68@gmail.com> Signed-off-by: Jiri Slaby <jslaby@suse.cz> Cc: James Smart <james.smart@broadcom.com> Cc: Dick Kennedy <dick.kennedy@broadcom.com> Cc: "James E.J. Bottomley" <jejb@linux.vnet.ibm.com> Cc: "Martin K. Petersen" <martin.petersen@oracle.com> Cc: <linux-scsi@vger.kernel.org> Acked-by: James Smart <james.smart@broadcom.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/a100u2w.c')
0 files changed, 0 insertions, 0 deletions