scsi: qla4xxx: Format SYSFS_FLAG_FW_SEL_BOOT as byte
authorFlorian Fainelli <f.fainelli@gmail.com>
Tue, 30 Nov 2021 20:38:13 +0000 (12:38 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 7 Dec 2021 03:17:19 +0000 (22:17 -0500)
qedi formats SYSFS_FLAG_FW_SEL_BOOT as a byte and the qla4xxx driver does
exactly the same thing. Align them for consistency.

Link: https://lore.kernel.org/r/20211130203813.12138-3-f.fainelli@gmail.com
Suggested-by: Martin K. Petersen <martin.petersen@oracle.com>
Acked-by: Manish Rangankar <mrangankar@marvell.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla4xxx/ql4_os.c

index 8987acc24dacde78acf990149341c9a74ff4c3ff..0ae936d839f1e30b5cce8c62f14e70d2c920bb8e 100644 (file)
@@ -5734,7 +5734,7 @@ static ssize_t qla4xxx_show_boot_eth_info(void *data, int type, char *buf)
 
        switch (type) {
        case ISCSI_BOOT_ETH_FLAGS:
-               rc = sprintf(str, "%d\n", SYSFS_FLAG_FW_SEL_BOOT);
+               rc = sprintf(str, "%d\n", (char)SYSFS_FLAG_FW_SEL_BOOT);
                break;
        case ISCSI_BOOT_ETH_INDEX:
                rc = sprintf(str, "0\n");
@@ -5843,7 +5843,7 @@ qla4xxx_show_boot_tgt_info(struct ql4_boot_session_info *boot_sess, int type,
                             (char *)&boot_conn->chap.intr_secret);
                break;
        case ISCSI_BOOT_TGT_FLAGS:
-               rc = sprintf(str, "%d\n", SYSFS_FLAG_FW_SEL_BOOT);
+               rc = sprintf(str, "%d\n", (char)SYSFS_FLAG_FW_SEL_BOOT);
                break;
        case ISCSI_BOOT_TGT_NIC_ASSOC:
                rc = sprintf(str, "0\n");