Re: [PATCH -next] target/rd: remove unused variable from target_core_rd.c

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

 



On Fri, 2014-01-10 at 23:38 +0800, Wei Yongjun wrote:
> From: Wei Yongjun <yongjun_wei@xxxxxxxxxxxxxxxxx>
> 
> The variable 'sg_table' is initialized but never used
> otherwise, so remove the unused variable.
> 
> Signed-off-by: Wei Yongjun <yongjun_wei@xxxxxxxxxxxxxxxxx>
> ---
>  drivers/target/target_core_rd.c | 6 ------
>  1 file changed, 6 deletions(-)
> 

Applied + squashed into the original commits.

Thanks Wei!

--nab

> diff --git a/drivers/target/target_core_rd.c b/drivers/target/target_core_rd.c
> index 3fd51eb..9a107c0 100644
> --- a/drivers/target/target_core_rd.c
> +++ b/drivers/target/target_core_rd.c
> @@ -105,14 +105,11 @@ static u32 rd_release_sgl_table(struct rd_dev *rd_dev, struct rd_dev_sg_table *s
>  
>  static void rd_release_device_space(struct rd_dev *rd_dev)
>  {
> -	struct rd_dev_sg_table *sg_table;
>  	u32 page_count;
>  
>  	if (!rd_dev->sg_table_array || !rd_dev->sg_table_count)
>  		return;
>  
> -	sg_table = rd_dev->sg_table_array;
> -
>  	page_count = rd_release_sgl_table(rd_dev, rd_dev->sg_table_array,
>  					  rd_dev->sg_table_count);
>  
> @@ -228,14 +225,11 @@ static int rd_build_device_space(struct rd_dev *rd_dev)
>  
>  static void rd_release_prot_space(struct rd_dev *rd_dev)
>  {
> -	struct rd_dev_sg_table *sg_table;
>  	u32 page_count;
>  
>  	if (!rd_dev->sg_prot_array || !rd_dev->sg_prot_count)
>  		return;
>  
> -	sg_table = rd_dev->sg_prot_array;
> -
>  	page_count = rd_release_sgl_table(rd_dev, rd_dev->sg_prot_array,
>  					  rd_dev->sg_prot_count);
>  
> 
> --
> To unsubscribe from this list: send the line "unsubscribe target-devel" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[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