Commit eb304e80 authored by Heiko Carstens's avatar Heiko Carstens Committed by Martin Schwidefsky

s390/vmcp: simplify vmcp_response_free()

Get rid of the goto and "out" label within vmcp_response_free() which
I added. This just makes the code harder to read than necessary.
Signed-off-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 41b0dbfa
......@@ -90,10 +90,9 @@ static void vmcp_response_free(struct vmcp_session *session)
page = phys_to_page((unsigned long)session->response);
cma_release(vmcp_cma, page, nr_pages);
session->cma_alloc = 0;
goto out;
}
} else {
free_pages((unsigned long)session->response, order);
out:
}
session->response = NULL;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment