mirror of https://gitee.com/openkylin/linux.git
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: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
parent
41b0dbfac0
commit
eb304e800d
|
@ -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);
|
||||
}
|
||||
free_pages((unsigned long)session->response, order);
|
||||
out:
|
||||
session->response = NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue