Re: [PATCH 06/10] qla2xxx: Remove redundant assignments

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Acked-by: Saurav Kashyap <saurav.kashyap@xxxxxxxxxx>



>The value of the pointer called "nxt" is not used after the
>"nxt = qla24xx_copy_eft(ha, nxt)" statement. Hence keep the function
>call but remove the assignment.
>
>Signed-off-by: Bart Van Assche <bvanassche@xxxxxxx>
>Cc: Chad Dupuis <chad.dupuis@xxxxxxxxxx>
>Cc: Saurav Kashyap <saurav.kashyap@xxxxxxxxxx>
>---
> drivers/scsi/qla2xxx/qla_dbg.c |    6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
>diff --git a/drivers/scsi/qla2xxx/qla_dbg.c
>b/drivers/scsi/qla2xxx/qla_dbg.c
>index cfa2a20..c612785 100644
>--- a/drivers/scsi/qla2xxx/qla_dbg.c
>+++ b/drivers/scsi/qla2xxx/qla_dbg.c
>@@ -1468,7 +1468,7 @@ qla25xx_fw_dump(scsi_qla_host_t *vha, int
>hardware_locked)
> 
> 	nxt = qla2xxx_copy_queues(ha, nxt);
> 
>-	nxt = qla24xx_copy_eft(ha, nxt);
>+	qla24xx_copy_eft(ha, nxt);
> 
> 	/* Chain entries -- started with MQ. */
> 	nxt_chain = qla25xx_copy_fce(ha, nxt_chain, &last_chain);
>@@ -1787,7 +1787,7 @@ qla81xx_fw_dump(scsi_qla_host_t *vha, int
>hardware_locked)
> 
> 	nxt = qla2xxx_copy_queues(ha, nxt);
> 
>-	nxt = qla24xx_copy_eft(ha, nxt);
>+	qla24xx_copy_eft(ha, nxt);
> 
> 	/* Chain entries -- started with MQ. */
> 	nxt_chain = qla25xx_copy_fce(ha, nxt_chain, &last_chain);
>@@ -2289,7 +2289,7 @@ qla83xx_fw_dump(scsi_qla_host_t *vha, int
>hardware_locked)
> copy_queue:
> 	nxt = qla2xxx_copy_queues(ha, nxt);
> 
>-	nxt = qla24xx_copy_eft(ha, nxt);
>+	qla24xx_copy_eft(ha, nxt);
> 
> 	/* Chain entries -- started with MQ. */
> 	nxt_chain = qla25xx_copy_fce(ha, nxt_chain, &last_chain);
>-- 
>1.7.10.4
>
>

<<attachment: winmail.dat>>


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux