From: Maneesh Jain Date: Fri, 28 Oct 2016 06:16:27 +0000 (+0530) Subject: HS 2.0 server: Remove redundant NULL check X-Git-Tag: hostap_2_7~2171 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea06a08f85fa95e75d47acad769cd07c1779f4e6;p=thirdparty%2Fhostap.git 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 --- diff --git a/hs20/server/spp_server.c b/hs20/server/spp_server.c index 33e3fa103..51c1d9638 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,