projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8047d26
)
cfg80211: reg: remove useless non-NULL check
author
Johannes Berg
<johannes.berg@intel.com>
Thu, 15 Oct 2015 06:44:32 +0000
(08:44 +0200)
committer
Johannes Berg
<johannes.berg@intel.com>
Thu, 15 Oct 2015 14:17:07 +0000
(16:17 +0200)
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
patch
|
blob
|
blame
|
history
diff --git
a/net/wireless/reg.c
b/net/wireless/reg.c
index f0b0f8c818b1731fab28b684bfcb57f6024ab101..92ee92a1592be2e3c0256cc3338f18bbe9996c15 100644
(file)
--- 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;