linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] iw: remove superfluous includes
@ 2015-10-21 12:04 Ola Olsson
  2015-10-21 12:26 ` Johannes Berg
  0 siblings, 1 reply; 2+ messages in thread
From: Ola Olsson @ 2015-10-21 12:04 UTC (permalink / raw)
  To: johannes; +Cc: linux-wireless, Ola Olsson, Ola Olsson

Signed-off-by: Ola Olsson <ola.olsson@sonymobile.com>
---
 coalesce.c |    2 --
 info.c     |    1 -
 link.c     |    1 -
 mpp.c      |    1 -
 p2p.c      |    3 ---
 scan.c     |    1 -
 survey.c   |    2 --
 7 files changed, 11 deletions(-)

diff --git a/coalesce.c b/coalesce.c
index fabf44a..36dcaef 100644
--- a/coalesce.c
+++ b/coalesce.c
@@ -8,8 +8,6 @@
 #include <netlink/msg.h>
 #include <netlink/attr.h>
 
-#include <arpa/inet.h>
-
 #include "nl80211.h"
 #include "iw.h"
 
diff --git a/info.c b/info.c
index 4ac1eab..d724ca2 100644
--- a/info.c
+++ b/info.c
@@ -1,5 +1,4 @@
 #include <stdbool.h>
-#include <errno.h>
 
 #include <netlink/genl/genl.h>
 #include <netlink/genl/family.h>
diff --git a/link.c b/link.c
index f3bde51..0a32392 100644
--- a/link.c
+++ b/link.c
@@ -1,7 +1,6 @@
 #include <net/if.h>
 #include <errno.h>
 #include <string.h>
-#include <ctype.h>
 #include <stdbool.h>
 
 #include <netlink/genl/genl.h>
diff --git a/mpp.c b/mpp.c
index 8859fd5..58bf28e 100644
--- a/mpp.c
+++ b/mpp.c
@@ -1,6 +1,5 @@
 #include <net/if.h>
 #include <errno.h>
-#include <string.h>
 
 #include <netlink/genl/genl.h>
 #include <netlink/genl/family.h>
diff --git a/p2p.c b/p2p.c
index 2067916..2d4bab0 100644
--- a/p2p.c
+++ b/p2p.c
@@ -1,6 +1,3 @@
-#include <errno.h>
-#include <string.h>
-
 #include <netlink/genl/genl.h>
 #include <netlink/genl/family.h>
 #include <netlink/genl/ctrl.h>
diff --git a/scan.c b/scan.c
index d3c7d98..8762784 100644
--- a/scan.c
+++ b/scan.c
@@ -1,7 +1,6 @@
 #include <net/if.h>
 #include <errno.h>
 #include <string.h>
-#include <ctype.h>
 #include <stdbool.h>
 
 #include <netlink/genl/genl.h>
diff --git a/survey.c b/survey.c
index 3e875a8..9325353 100644
--- a/survey.c
+++ b/survey.c
@@ -1,6 +1,4 @@
 #include <net/if.h>
-#include <errno.h>
-#include <string.h>
 
 #include <netlink/genl/genl.h>
 #include <netlink/genl/family.h>
-- 
1.7.9.5


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

* Re: [PATCH] iw: remove superfluous includes
  2015-10-21 12:04 [PATCH] iw: remove superfluous includes Ola Olsson
@ 2015-10-21 12:26 ` Johannes Berg
  0 siblings, 0 replies; 2+ messages in thread
From: Johannes Berg @ 2015-10-21 12:26 UTC (permalink / raw)
  To: Ola Olsson; +Cc: linux-wireless, Ola Olsson

I'm always a bit scared of patches like this in case we just start
relying on an include file including something else, but I'll apply it
and we'll see what happens :)

johannes

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

end of thread, other threads:[~2015-10-21 12:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-21 12:04 [PATCH] iw: remove superfluous includes Ola Olsson
2015-10-21 12:26 ` Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).