diff options
author | Maneesh Jain <maneesh.jain@samsung.com> | 2016-10-28 06:16:27 (GMT) |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2016-10-28 16:08:32 (GMT) |
commit | ea06a08f85fa95e75d47acad769cd07c1779f4e6 (patch) | |
tree | b946f31338fd6e1c97ae621768d4bfb41f2b32e4 /hs20 | |
parent | 5f99d96287256d0e981bafe5cb10491be83a0711 (diff) | |
download | hostap-ea06a08f85fa95e75d47acad769cd07c1779f4e6.zip hostap-ea06a08f85fa95e75d47acad769cd07c1779f4e6.tar.gz hostap-ea06a08f85fa95e75d47acad769cd07c1779f4e6.tar.bz2 |
HS 2.0 server: Remove redundant NULL check
Both devinfo and devdetail are non-NULL here due to the earlier check
within the same function.
Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>
Diffstat (limited to 'hs20')
-rw-r--r-- | hs20/server/spp_server.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/hs20/server/spp_server.c b/hs20/server/spp_server.c index 33e3fa1..51c1d96 100644 --- a/hs20/server/spp_server.c +++ b/hs20/server/spp_server.c @@ -1823,10 +1823,8 @@ static xml_node_t * hs20_spp_post_dev_data(struct hs20_svc *ctx, } if (strcasecmp(req_reason, "User input completed") == 0) { - if (devinfo) - db_add_session_devinfo(ctx, session_id, devinfo); - if (devdetail) - db_add_session_devdetail(ctx, session_id, devdetail); + db_add_session_devinfo(ctx, session_id, devinfo); + db_add_session_devdetail(ctx, session_id, devdetail); ret = hs20_user_input_complete(ctx, user, realm, dmacc, session_id); hs20_eventlog_node(ctx, user, realm, session_id, |