mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 00:38:24 -05:00
Remove unnecessary parameter validation
This is dead code since this helper function is always called with non-NULL pointer. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
94b84bc725
commit
1d4fe3bcbc
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user