lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <3fd978fe-73c7-503b-c6f6-8e1096199aba@intel.com>
Date:   Wed, 24 Oct 2018 12:55:14 +0300
From:   "Neftin, Sasha" <sasha.neftin@...el.com>
To:     YueHaibing <yuehaibing@...wei.com>,
        Jeff Kirsher <jeffrey.t.kirsher@...el.com>,
        "David S. Miller" <davem@...emloft.net>
Cc:     intel-wired-lan@...ts.osuosl.org, netdev@...r.kernel.org,
        kernel-janitors@...r.kernel.org,
        "Neftin, Sasha" <sasha.neftin@...el.com>
Subject: Re: [PATCH net-next] igc: Remove set but not used variable
 'pci_using_dac'

On 10/19/2018 15:48, YueHaibing wrote:
> Fixes gcc '-Wunused-but-set-variable' warning:
> 
> drivers/net/ethernet/intel/igc/igc_main.c: In function 'igc_probe':
> drivers/net/ethernet/intel/igc/igc_main.c:3535:11: warning:
>   variable 'pci_using_dac' set but not used [-Wunused-but-set-variable]
> 
> It never used since introduction in commit
> d89f88419f99 ("igc: Add skeletal frame for Intel(R) 2.5G Ethernet Controller support")
> 
> Signed-off-by: YueHaibing <yuehaibing@...wei.com>
> ---
>   drivers/net/ethernet/intel/igc/igc_main.c | 5 +----
>   1 file changed, 1 insertion(+), 4 deletions(-)
> 
> diff --git a/drivers/net/ethernet/intel/igc/igc_main.c b/drivers/net/ethernet/intel/igc/igc_main.c
> index 9d85707..06a4afbe 100644
> --- a/drivers/net/ethernet/intel/igc/igc_main.c
> +++ b/drivers/net/ethernet/intel/igc/igc_main.c
> @@ -3532,19 +3532,16 @@ static int igc_probe(struct pci_dev *pdev,
>   	struct net_device *netdev;
>   	struct igc_hw *hw;
>   	const struct igc_info *ei = igc_info_tbl[ent->driver_data];
> -	int err, pci_using_dac;
> +	int err;
>   
>   	err = pci_enable_device_mem(pdev);
>   	if (err)
>   		return err;
>   
> -	pci_using_dac = 0;
>   	err = dma_set_mask(&pdev->dev, DMA_BIT_MASK(64));
>   	if (!err) {
>   		err = dma_set_coherent_mask(&pdev->dev,
>   					    DMA_BIT_MASK(64));
> -		if (!err)
> -			pci_using_dac = 1;
>   	} else {
>   		err = dma_set_mask(&pdev->dev, DMA_BIT_MASK(32));
>   		if (err) {
> 
Thanks for the patch. Good.

Acked-by: Sasha Neftin <sasha.neftin@...el.com>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ