linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/6] cfg80211: reg: remove useless non-NULL check
@ 2015-10-15  9:46 Johannes Berg
  2015-10-15  9:46 ` [PATCH 2/6] cfg80211: reg: rename reg_call_crda to reg_query_database Johannes Berg
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Johannes Berg @ 2015-10-15  9:46 UTC (permalink / raw)
  To: linux-wireless; +Cc: Johannes Berg

From: Johannes Berg <johannes.berg@intel.com>

There's no way that the alpha2 pointer can be NULL, so
no point in checking that it isn't.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
---
 net/wireless/reg.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/net/wireless/reg.c b/net/wireless/reg.c
index 7258246b7458..3acb51462cc6 100644
--- a/net/wireless/reg.c
+++ b/net/wireless/reg.c
@@ -501,9 +501,6 @@ static void reg_regdb_query(const char *alpha2)
 {
 	struct reg_regdb_search_request *request;
 
-	if (!alpha2)
-		return;
-
 	request = kzalloc(sizeof(struct reg_regdb_search_request), GFP_KERNEL);
 	if (!request)
 		return;
-- 
2.5.1


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

end of thread, other threads:[~2015-10-16  6:37 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-15  9:46 [PATCH 1/6] cfg80211: reg: remove useless non-NULL check Johannes Berg
2015-10-15  9:46 ` [PATCH 2/6] cfg80211: reg: rename reg_call_crda to reg_query_database Johannes Berg
2015-10-15  9:46 ` [PATCH 3/6] cfg80211: reg: search built-in database directly Johannes Berg
2015-10-15  9:46 ` [PATCH 4/6] cfg80211: reg: remove useless reg_timeout scheduling Johannes Berg
2015-10-15  9:46 ` [PATCH 5/6] cfg80211: reg: make CRDA support optional Johannes Berg
2015-10-15 23:03   ` Julian Calaby
2015-10-16  6:37     ` Johannes Berg
2015-10-15  9:46 ` [PATCH 6/6] cfg80211: reg: rename reg_regdb_query() to reg_query_builtin() 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).