Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+2 −3
Original line number Original line Diff line number Diff line
@@ -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;
}
}