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>
This commit is contained in:
Maneesh Jain 2016-10-28 11:46:27 +05:30 committed by Jouni Malinen
parent 5f99d96287
commit ea06a08f85

View file

@ -1823,9 +1823,7 @@ 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);
ret = hs20_user_input_complete(ctx, user, realm, dmacc,
session_id);