]> git.ipfire.org Git - thirdparty/linux.git/commit
scsi: qla4xxx: Use correct variable in memset for clarity
authorAlok Tiwari <alok.a.tiwari@oracle.com>
Tue, 21 Oct 2025 09:03:52 +0000 (02:03 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 24 Oct 2025 03:02:15 +0000 (23:02 -0400)
commite9ff858c9adff26f5d2f77d3575e39fb1470027c
tree224b2fad3acde4d856bad9ded973d93148950469
parente414748b7e83673cc777ce33e44d90e5157d687f
scsi: qla4xxx: Use correct variable in memset for clarity

Both mbox_cmd and mbox_sts have the same size, so using sizeof(mbox_cmd)
when clearing mbox_sts did not cause any functional issue. However, it
is misleading and reduces code readability.

Update the memset() calls to use sizeof(mbox_sts) to make the intent
clear

Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
Link: https://patch.msgid.link/20251021090354.1804327-1-alok.a.tiwari@oracle.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla4xxx/ql4_mbx.c