scsi: message: fusion: remove variable 'where'

Message ID 20221031154538.870223-1-colin.i.king@gmail.com
State New
Headers
Series scsi: message: fusion: remove variable 'where' |

Commit Message

Colin Ian King Oct. 31, 2022, 3:45 p.m. UTC
  Variable where is just being incremented and it's never used
anywhere else. The variable and the increment are redundant so
remove it.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
---
 drivers/message/fusion/mptctl.c | 2 --
 1 file changed, 2 deletions(-)
  

Comments

Martin K. Petersen Nov. 8, 2022, 2:59 a.m. UTC | #1
Colin,

> Variable where is just being incremented and it's never used anywhere
> else. The variable and the increment are redundant so remove it.

Applied to 6.2/scsi-staging, thanks!
  
Martin K. Petersen Nov. 17, 2022, 6:29 p.m. UTC | #2
On Mon, 31 Oct 2022 15:45:38 +0000, Colin Ian King wrote:

> Variable where is just being incremented and it's never used
> anywhere else. The variable and the increment are redundant so
> remove it.
> 
> 

Applied to 6.2/scsi-queue, thanks!

[1/1] scsi: message: fusion: remove variable 'where'
      https://git.kernel.org/mkp/scsi/c/c7cbaab2d464
  

Patch

diff --git a/drivers/message/fusion/mptctl.c b/drivers/message/fusion/mptctl.c
index 52c7020c9d19..1decd09a08d8 100644
--- a/drivers/message/fusion/mptctl.c
+++ b/drivers/message/fusion/mptctl.c
@@ -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) {