[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] tmem: drop a gross goto usage
commit 3f5c613287e79b44d4e4b10e0193581b7442249a Author: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx> AuthorDate: Thu Mar 6 12:23:25 2014 +0100 Commit: Jan Beulich <jbeulich@xxxxxxxx> CommitDate: Thu Mar 6 12:23:25 2014 +0100 tmem: drop a gross goto usage No need to do it that way. Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx> --- xen/common/tmem.c | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git a/xen/common/tmem.c b/xen/common/tmem.c index d9e912b..02e7e2e 100644 --- a/xen/common/tmem.c +++ b/xen/common/tmem.c @@ -2614,17 +2614,15 @@ long do_tmem_op(tmem_cli_op_t uops) if ( client != NULL && client->domain->is_dying ) { - rc = -ENODEV; - simple_error: errored_tmem_ops++; - return rc; + return -ENODEV; } if ( unlikely(tmem_get_tmemop_from_client(&op, uops) != 0) ) { tmem_client_err("tmem: can't get tmem struct from %s\n", tmem_client_str); - rc = -EFAULT; - goto simple_error; + errored_tmem_ops++; + return -EFAULT; } if ( op.cmd == TMEM_CONTROL ) -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |