* [PATCH] tmem: Drop a gross goto usage.
@ 2014-03-05 21:51 Konrad Rzeszutek Wilk
2014-03-06 11:25 ` Jan Beulich
0 siblings, 1 reply; 3+ messages in thread
From: Konrad Rzeszutek Wilk @ 2014-03-05 21:51 UTC (permalink / raw)
To: xen-devel, lliubbo, bob.liu; +Cc: Konrad Rzeszutek Wilk
No need to do it that way.
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
---
xen/common/tmem.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/xen/common/tmem.c b/xen/common/tmem.c
index bcf9bbf..9868fe3 100644
--- a/xen/common/tmem.c
+++ b/xen/common/tmem.c
@@ -2597,17 +2597,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;
}
/* Acquire wirte lock for all command at first */
--
1.8.5.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] tmem: Drop a gross goto usage.
2014-03-05 21:51 [PATCH] tmem: Drop a gross goto usage Konrad Rzeszutek Wilk
@ 2014-03-06 11:25 ` Jan Beulich
0 siblings, 0 replies; 3+ messages in thread
From: Jan Beulich @ 2014-03-06 11:25 UTC (permalink / raw)
To: Konrad Rzeszutek Wilk; +Cc: xen-devel, lliubbo
>>> On 05.03.14 at 22:51, Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> wrote:
> No need to do it that way.
>
> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
I applied it, but it would have been nice if you had mentioned
that this wasn't against current staging (i.e. didn't apply without
fuzz).
Jan
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] tmem: Drop a gross goto usage.
@ 2014-03-06 11:43 Konrad Rzeszutek Wilk
0 siblings, 0 replies; 3+ messages in thread
From: Konrad Rzeszutek Wilk @ 2014-03-06 11:43 UTC (permalink / raw)
To: Jan Beulich; +Cc: xen-devel, Bob Liu
On Mar 6, 2014 6:25 AM, Jan Beulich <JBeulich@suse.com> wrote:
>
> >>> On 05.03.14 at 22:51, Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> wrote:
> > No need to do it that way.
> >
> > Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
>
> I applied it, but it would have been nice if you had mentioned
> that this wasn't against current staging (i.e. didn't apply without
> fuzz).
Pardon me. I was basing it on top of the patches that Bob had posted - as I was reviewing them and saw this and figured I might as well post it for a second look.
Thanks for checking it in!
>
> Jan
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-03-06 11:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-05 21:51 [PATCH] tmem: Drop a gross goto usage Konrad Rzeszutek Wilk
2014-03-06 11:25 ` Jan Beulich
-- strict thread matches above, loose matches on Subject: below --
2014-03-06 11:43 Konrad Rzeszutek Wilk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).