• Tomas Jasek's avatar
    scsi: lpfc: replace init_timer by setup_timer · 33cc559a
    Tomas Jasek authored
    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: default avatarTomas Jasek <tomsik68@gmail.com>
    Signed-off-by: default avatarJiri 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: default avatarJames Smart <james.smart@broadcom.com>
    Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
    33cc559a
lpfc_hbadisc.c 193 KB