[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <e56b2e2a-1d26-a74d-1a4f-0cc402dc5e39@intel.com>
Date: Thu, 8 Nov 2018 14:09:29 +0200
From: "Neftin, Sasha" <sasha.neftin@...el.com>
To: Joe Perches <joe@...ches.com>,
Jeff Kirsher <jeffrey.t.kirsher@...el.com>, davem@...emloft.net
Cc: netdev@...r.kernel.org, nhorman@...hat.com, sassmann@...hat.com,
"Neftin, Sasha" <sasha.neftin@...el.com>
Subject: Re: [net-next 12/12] igc: Clean up code
On 11/8/2018 13:00, Joe Perches wrote:
> On Wed, 2018-11-07 at 14:48 -0800, Jeff Kirsher wrote:
>> From: Sasha Neftin <sasha.neftin@...el.com>
>>
>> Address few community comments.
>> Remove unused code, will be added per demand.
>> Remove blank lines and unneeded includes.
>>
>> Signed-off-by: Sasha Neftin <sasha.neftin@...el.com>
>> Tested-by: Aaron Brown <aaron.f.brown@...el.com>
>> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@...el.com>
>> ---
>> drivers/net/ethernet/intel/igc/igc.h | 9 ---------
>> drivers/net/ethernet/intel/igc/igc_main.c | 15 ---------------
>> 2 files changed, 24 deletions(-)
>>
>> diff --git a/drivers/net/ethernet/intel/igc/igc.h b/drivers/net/ethernet/intel/igc/igc.h
> []
>> #define IGC_ERR(args...) pr_err("igc: " args)
>
> This is used just once and should probably be removed.
>
> maybe:
>
> ---
> drivers/net/ethernet/intel/igc/igc_main.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/net/ethernet/intel/igc/igc_main.c b/drivers/net/ethernet/intel/igc/igc_main.c
> index 9d85707e8a81..b58542b20623 100644
> --- a/drivers/net/ethernet/intel/igc/igc_main.c
> +++ b/drivers/net/ethernet/intel/igc/igc_main.c
> @@ -3551,7 +3551,7 @@ static int igc_probe(struct pci_dev *pdev,
> err = dma_set_coherent_mask(&pdev->dev,
> DMA_BIT_MASK(32));
> if (err) {
> - IGC_ERR("Wrong DMA configuration, aborting\n");
> + dev_err(&pdev->dev, "igc: Wrong DMA configuration, aborting\n");
> goto err_dma;
> }
> }
>
>
Good note, thanks. I will process another patch address this suggestion.
Powered by blists - more mailing lists