drivers/scsi/qedi/qedi_main.c:1867:37: warning: restricted __le32 degrades to integer
Signed-off-by: Kunwu Chan <[email protected]>
---
drivers/scsi/qedi/qedi_main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/qedi/qedi_main.c b/drivers/scsi/qedi/qedi_main.c
index cd0180b1f5b9..3f5b148347d2 100644
--- a/drivers/scsi/qedi/qedi_main.c
+++ b/drivers/scsi/qedi/qedi_main.c
@@ -1864,7 +1864,7 @@ void qedi_get_task_tid(struct qedi_ctx *qedi, u32 itt, s16 *tid)
u16 i;
for (i = 0; i < MAX_ISCSI_TASK_ENTRIES; i++) {
- if (qedi->itt_map[i].itt == itt) {
+ if (le32_to_cpu(qedi->itt_map[i].itt) == itt) {
*tid = i;
QEDI_INFO(&qedi->dbg_ctx, QEDI_LOG_CONN,
"Ref itt=0x%x, found at tid=0x%x\n",
--
2.34.1