projects
/
mech_eap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94b84bc
)
Remove unnecessary parameter validation
author
Jouni Malinen
<j@w1.fi>
Sat, 22 Mar 2014 14:24:57 +0000
(16:24 +0200)
committer
Jouni Malinen
<j@w1.fi>
Sat, 22 Mar 2014 14:25:28 +0000
(16:25 +0200)
This is dead code since this helper function is always called with
non-NULL pointer.
Signed-off-by: Jouni Malinen <j@w1.fi>
src/ap/ctrl_iface_ap.c
patch
|
blob
|
history
diff --git
a/src/ap/ctrl_iface_ap.c
b/src/ap/ctrl_iface_ap.c
index
11351c4
..
e1020a6
100644
(file)
--- a/
src/ap/ctrl_iface_ap.c
+++ b/
src/ap/ctrl_iface_ap.c
@@
-469,9
+469,6
@@
int hostapd_parse_csa_settings(const char *pos,
{
char *end;
- if (!settings)
- return -1;
-
os_memset(settings, 0, sizeof(*settings));
settings->cs_count = strtol(pos, &end, 10);
if (pos == end) {