]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4d6d95f1ad76d249305c76a88e234675b4efe7cc
treea2120ca54edc999850f868adaa0af97bfb9e7fd7
parentb91cb4cc91c1ec3fc11864de489043d853880cae
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