]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
scsi: lpfc: Use switch case statements in DIF debugfs handlers
authorJustin Tee <justin.tee@broadcom.com>
Mon, 15 Sep 2025 18:08:07 +0000 (11:08 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 17 Sep 2025 02:20:00 +0000 (22:20 -0400)
commit5d7ef44d8ae3b94565e8212d68c06bcee6f6ef90
treeb02812602fb9498b65c2e7462b3ea60088901cd3
parent06d3c77c520b8c3ddcfd11c75f92f91213f7078a
scsi: lpfc: Use switch case statements in DIF debugfs handlers

With the introduction of aux numbers for debugfs entries, there's no
need to use the if-else-if clause based on debugfs entry pointers.
Update both the lpfc_debugfs_dif_err_read and lpfc_debugfs_dif_err_write
routines to use switch case based on aux instead.

Reported-by: Al Viro <viro@zeniv.linux.org.uk>
Closes: https://lore.kernel.org/linux-fsdevel/20250702212917.GK3406663@ZenIV/
Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Message-ID: <20250915180811.137530-11-justintee8345@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_debugfs.c
drivers/scsi/lpfc/lpfc_hw.h