提交 eb304e80 编写于 作者: H Heiko Carstens 提交者: 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: NHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
上级 41b0dbfa
...@@ -90,10 +90,9 @@ static void vmcp_response_free(struct vmcp_session *session) ...@@ -90,10 +90,9 @@ static void vmcp_response_free(struct vmcp_session *session)
page = phys_to_page((unsigned long)session->response); page = phys_to_page((unsigned long)session->response);
cma_release(vmcp_cma, page, nr_pages); cma_release(vmcp_cma, page, nr_pages);
session->cma_alloc = 0; session->cma_alloc = 0;
goto out; } else {
free_pages((unsigned long)session->response, order);
} }
free_pages((unsigned long)session->response, order);
out:
session->response = NULL; session->response = NULL;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册