]> 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)
commit2cd71a51901f57afc05d041fd60e394c92e21e24
treea2120ca54edc999850f868adaa0af97bfb9e7fd7
parent104c6c5c7d76a29b3ccbf58e11805b29c8f1afa8
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