[dpdk-dev] drivers/net: remove duplicated includes

Message ID 20180416103215.30566-1-thomas@monjalon.net (mailing list archive)
State Accepted, archived
Delegated to: Ferruh Yigit
Headers

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation fail Compilation issues

Commit Message

Thomas Monjalon April 16, 2018, 10:32 a.m. UTC
  Duplicated includes are found with devtools/check-dup-includes.sh

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
---
 drivers/net/axgbe/axgbe_common.h           | 1 -
 drivers/net/nfp/nfpcore/nfp_cpp_pcie_ops.c | 1 -
 2 files changed, 2 deletions(-)
  

Comments

Ferruh Yigit April 16, 2018, 4:21 p.m. UTC | #1
On 4/16/2018 11:32 AM, Thomas Monjalon wrote:
> Duplicated includes are found with devtools/check-dup-includes.sh
> 
> Signed-off-by: Thomas Monjalon <thomas@monjalon.net>

Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
  
Ferruh Yigit April 16, 2018, 5:25 p.m. UTC | #2
On 4/16/2018 5:21 PM, Ferruh Yigit wrote:
> On 4/16/2018 11:32 AM, Thomas Monjalon wrote:
>> Duplicated includes are found with devtools/check-dup-includes.sh
>>
>> Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
> 
> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>

Applied to dpdk-next-net/master, thanks.
  

Patch

diff --git a/drivers/net/axgbe/axgbe_common.h b/drivers/net/axgbe/axgbe_common.h
index 97a80f595..d25d54cac 100644
--- a/drivers/net/axgbe/axgbe_common.h
+++ b/drivers/net/axgbe/axgbe_common.h
@@ -34,7 +34,6 @@ 
 #include <rte_ethdev.h>
 #include <rte_dev.h>
 #include <rte_errno.h>
-#include <rte_dev.h>
 #include <rte_ethdev_pci.h>
 #include <rte_common.h>
 #include <rte_cycles.h>
diff --git a/drivers/net/nfp/nfpcore/nfp_cpp_pcie_ops.c b/drivers/net/nfp/nfpcore/nfp_cpp_pcie_ops.c
index ad6ce72fe..d26e782bb 100644
--- a/drivers/net/nfp/nfpcore/nfp_cpp_pcie_ops.c
+++ b/drivers/net/nfp/nfpcore/nfp_cpp_pcie_ops.c
@@ -23,7 +23,6 @@ 
 #include <stdbool.h>
 #include <fcntl.h>
 #include <string.h>
-#include <unistd.h>
 #include <errno.h>
 #include <dirent.h>
 #include <libgen.h>