All of lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-wired-lan] [PATCH 2/2] igc: Remove obsolete IGC_ERR define
@ 2018-11-12  9:05 Sasha Neftin
  2018-11-12 17:13 ` Jeff Kirsher
  2018-11-19 19:27 ` Brown, Aaron F
  0 siblings, 2 replies; 3+ messages in thread
From: Sasha Neftin @ 2018-11-12  9:05 UTC (permalink / raw)
  To: intel-wired-lan

Address community comment.
Remove obsolete IGC_ERR define and use dev_err method.
Suggested by Joe Perches.

Signed-off-by: Sasha Neftin <sasha.neftin@intel.com>
---
 drivers/net/ethernet/intel/igc/igc.h      | 2 --
 drivers/net/ethernet/intel/igc/igc_main.c | 2 +-
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/net/ethernet/intel/igc/igc.h b/drivers/net/ethernet/intel/igc/igc.h
index 3b00b109b34a..b1039dd3dd13 100644
--- a/drivers/net/ethernet/intel/igc/igc.h
+++ b/drivers/net/ethernet/intel/igc/igc.h
@@ -11,8 +11,6 @@
 #include <linux/ethtool.h>
 #include <linux/sctp.h>
 
-#define IGC_ERR(args...) pr_err("igc: " args)
-
 #include "igc_hw.h"
 
 /* main */
diff --git a/drivers/net/ethernet/intel/igc/igc_main.c b/drivers/net/ethernet/intel/igc/igc_main.c
index eb11e8dbf0b2..4024eb1d700f 100644
--- a/drivers/net/ethernet/intel/igc/igc_main.c
+++ b/drivers/net/ethernet/intel/igc/igc_main.c
@@ -3536,7 +3536,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 config\n");
 				goto err_dma;
 			}
 		}
-- 
2.11.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Intel-wired-lan] [PATCH 2/2] igc: Remove obsolete IGC_ERR define
  2018-11-12  9:05 [Intel-wired-lan] [PATCH 2/2] igc: Remove obsolete IGC_ERR define Sasha Neftin
@ 2018-11-12 17:13 ` Jeff Kirsher
  2018-11-19 19:27 ` Brown, Aaron F
  1 sibling, 0 replies; 3+ messages in thread
From: Jeff Kirsher @ 2018-11-12 17:13 UTC (permalink / raw)
  To: intel-wired-lan

On Mon, 2018-11-12 at 11:05 +0200, Sasha Neftin wrote:
> Address community comment.
> Remove obsolete IGC_ERR define and use dev_err method.
> Suggested by Joe Perches.
> 
> Signed-off-by: Sasha Neftin <sasha.neftin@intel.com>
> ---
>  drivers/net/ethernet/intel/igc/igc.h      | 2 --
>  drivers/net/ethernet/intel/igc/igc_main.c | 2 +-
>  2 files changed, 1 insertion(+), 3 deletions(-)

Was there supposed to be a patch 1/2?  The title of this patch would
lead me to believe that there was another patch in this series that I
am missing.  Is the patch title a typo?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://lists.osuosl.org/pipermail/intel-wired-lan/attachments/20181112/66962bee/attachment.asc>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Intel-wired-lan] [PATCH 2/2] igc: Remove obsolete IGC_ERR define
  2018-11-12  9:05 [Intel-wired-lan] [PATCH 2/2] igc: Remove obsolete IGC_ERR define Sasha Neftin
  2018-11-12 17:13 ` Jeff Kirsher
@ 2018-11-19 19:27 ` Brown, Aaron F
  1 sibling, 0 replies; 3+ messages in thread
From: Brown, Aaron F @ 2018-11-19 19:27 UTC (permalink / raw)
  To: intel-wired-lan

> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On
> Behalf Of Sasha Neftin
> Sent: Monday, November 12, 2018 1:05 AM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [PATCH 2/2] igc: Remove obsolete IGC_ERR define
> 
> Address community comment.
> Remove obsolete IGC_ERR define and use dev_err method.
> Suggested by Joe Perches.
> 
> Signed-off-by: Sasha Neftin <sasha.neftin@intel.com>
> ---
>  drivers/net/ethernet/intel/igc/igc.h      | 2 --
>  drivers/net/ethernet/intel/igc/igc_main.c | 2 +-
>  2 files changed, 1 insertion(+), 3 deletions(-)

Tested-by: Aaron Brown <aaron.f.brown@intel.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-11-19 19:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-12  9:05 [Intel-wired-lan] [PATCH 2/2] igc: Remove obsolete IGC_ERR define Sasha Neftin
2018-11-12 17:13 ` Jeff Kirsher
2018-11-19 19:27 ` Brown, Aaron F

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.