[PATCH] scsi:fnic: Self-assignment of intr_time_type has no effect

liuqiangneo@163.com posted 1 patch 3 months, 3 weeks ago
drivers/scsi/fnic/fnic_res.c | 1 -
1 file changed, 1 deletion(-)
[PATCH] scsi:fnic: Self-assignment of intr_time_type has no effect
Posted by liuqiangneo@163.com 3 months, 3 weeks ago
From: Qiang Liu <liuqiang@kylinos.cn>

Remove the self-assignment statement of the intr_time_type variable

Signed-off-by: Qiang Liu <liuqiang@kylinos.cn>
---
 drivers/scsi/fnic/fnic_res.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/scsi/fnic/fnic_res.c b/drivers/scsi/fnic/fnic_res.c
index 763475587b7f..9801e5fbb0dd 100644
--- a/drivers/scsi/fnic/fnic_res.c
+++ b/drivers/scsi/fnic/fnic_res.c
@@ -134,7 +134,6 @@ int fnic_get_vnic_config(struct fnic *fnic)
 			    c->luns_per_tgt));
 
 	c->intr_timer = min_t(u16, VNIC_INTR_TIMER_MAX, c->intr_timer);
-	c->intr_timer_type = c->intr_timer_type;
 
 	/* for older firmware, GET_CONFIG will not return anything */
 	if (c->wq_copy_count == 0)
-- 
2.43.0
Re: [PATCH] scsi:fnic: Self-assignment of intr_time_type has no effect
Posted by Martin K. Petersen 3 months, 2 weeks ago
> Remove the self-assignment statement of the intr_time_type variable

Applied to 6.19/scsi-staging, thanks!

-- 
Martin K. Petersen