scsi: message: fusion: Remove variable 'where'
authorColin Ian King <colin.i.king@gmail.com>
Mon, 31 Oct 2022 15:45:38 +0000 (15:45 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 8 Nov 2022 03:00:52 +0000 (03:00 +0000)
Variable 'where' is just being incremented and it's never used
anywhere else. Remove it.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Link: https://lore.kernel.org/r/20221031154538.870223-1-colin.i.king@gmail.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/message/fusion/mptctl.c

index 52c7020c9d191207e2df1154c5a9cb4e955d5078..1decd09a08d8166c448fc403660addb8e6d437f9 100644 (file)
@@ -2879,7 +2879,6 @@ static struct mpt_pci_driver mptctl_driver = {
 static int __init mptctl_init(void)
 {
        int err;
-       int where = 1;
 
        show_mptmod_ver(my_NAME, my_VERSION);
 
@@ -2898,7 +2897,6 @@ static int __init mptctl_init(void)
        /*
         *  Install our handler
         */
-       ++where;
        mptctl_id = mpt_register(mptctl_reply, MPTCTL_DRIVER,
            "mptctl_reply");
        if (!mptctl_id || mptctl_id >= MPT_MAX_PROTOCOL_DRIVERS) {