Commit 25ad6f63 authored by Colin Ian King's avatar Colin Ian King Committed by Martin K. Petersen

scsi: pcmcia: nsp_cs: Remove unused variable i

Variable i is just being incremented and it's never used anywhere else. The
variable and the increment are redundant so remove it.
Signed-off-by: default avatarColin Ian King <colin.i.king@gmail.com>
Link: https://lore.kernel.org/r/20221024141101.2161167-1-colin.i.king@gmail.comSigned-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent a301d487
...@@ -450,8 +450,6 @@ static int nsp_analyze_sdtr(struct scsi_cmnd *SCpnt) ...@@ -450,8 +450,6 @@ static int nsp_analyze_sdtr(struct scsi_cmnd *SCpnt)
sync_data *sync = &(data->Sync[target]); sync_data *sync = &(data->Sync[target]);
struct nsp_sync_table *sync_table; struct nsp_sync_table *sync_table;
unsigned int period, offset; unsigned int period, offset;
int i;
nsp_dbg(NSP_DEBUG_SYNC, "in"); nsp_dbg(NSP_DEBUG_SYNC, "in");
...@@ -466,7 +464,7 @@ static int nsp_analyze_sdtr(struct scsi_cmnd *SCpnt) ...@@ -466,7 +464,7 @@ static int nsp_analyze_sdtr(struct scsi_cmnd *SCpnt)
sync_table = nsp_sync_table_40M; sync_table = nsp_sync_table_40M;
} }
for ( i = 0; sync_table->max_period != 0; i++, sync_table++) { for (; sync_table->max_period != 0; sync_table++) {
if ( period >= sync_table->min_period && if ( period >= sync_table->min_period &&
period <= sync_table->max_period ) { period <= sync_table->max_period ) {
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment