bgscan: Remove unnecessary NULL check
bgscan_init() is the only caller for the init() function and the parameters argument is never NULL. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
0f9b4a0f1d
commit
9d6eaad6b8
2 changed files with 0 additions and 6 deletions
|
@ -320,9 +320,6 @@ static int bgscan_learn_get_params(struct bgscan_learn_data *data,
|
|||
{
|
||||
const char *pos;
|
||||
|
||||
if (params == NULL)
|
||||
return 0;
|
||||
|
||||
data->short_interval = atoi(params);
|
||||
|
||||
pos = os_strchr(params, ':');
|
||||
|
|
|
@ -80,9 +80,6 @@ static int bgscan_simple_get_params(struct bgscan_simple_data *data,
|
|||
{
|
||||
const char *pos;
|
||||
|
||||
if (params == NULL)
|
||||
return 0;
|
||||
|
||||
data->short_interval = atoi(params);
|
||||
|
||||
pos = os_strchr(params, ':');
|
||||
|
|
Loading…
Reference in a new issue