OSDN Git Service

scsi: lpfc: correct sg_seg_cnt attribute min vs default
authorJames Smart <jsmart2021@gmail.com>
Tue, 19 Dec 2017 18:57:50 +0000 (10:57 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 21 Dec 2017 02:27:30 +0000 (21:27 -0500)
commitb996ce39960e6239d3d30745749b0b17239cadce
treea2120ca54edc999850f868adaa0af97bfb9e7fd7
parent62aa281470fdb7c0796d63a1cc918a8c1f02dde2
scsi: lpfc: correct sg_seg_cnt attribute min vs default

Prior patch mixed up what argument in the macro was what, so min value
was placed as the "default" argument, and the default value was placed
as the "min" argument. Thus, when the default was applied, it looked
like the default was smaller than the allowed min.

Swap argument postions to correct.

[mkp: fixed checkpatch warning]

Signed-off-by: James Smart <james.smart@broadcom.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_attr.c