[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1347024784.1505.12.camel@leonhard>
Date: Fri, 07 Sep 2012 22:33:04 +0900
From: Namhyung Kim <namhyung@...nel.org>
To: Jiri Olsa <jolsa@...hat.com>
Cc: linux-kernel@...r.kernel.org,
Arnaldo Carvalho de Melo <acme@...stprotocols.net>,
Peter Zijlstra <a.p.zijlstra@...llo.nl>,
Ingo Molnar <mingo@...e.hu>, Paul Mackerras <paulus@...ba.org>,
Corey Ashford <cjashfor@...ux.vnet.ibm.com>,
Frederic Weisbecker <fweisbec@...il.com>,
"Paul E. McKenney" <paulmck@...ux.vnet.ibm.com>,
Andi Kleen <andi@...stfloor.org>,
David Ahern <dsahern@...il.com>
Subject: Re: [PATCH 09/12] perf diff: Add weighted diff computation way to
compare hist entries
2012-09-07 (금), 11:28 +0200, Jiri Olsa:
> On Fri, Sep 07, 2012 at 02:58:19PM +0900, Namhyung Kim wrote:
> > I don't see why this do { } while(0) loop is necessary.
> > How about this?
> >
> > w1 = strtol(opt, &tmp, 10);
> > if (*tmp != ',')
> > goto error;
> >
> > opt = tmp + 1;
> > w2 = strtol(opt, &tmp, 10);
> > if (*tmp != '\0')
> > goto error;
> >
> > if (!w1 || !w2)
> > goto error;
>
> I do this not to use labels & goto ;)
But isn't it usual? Do you have a reason not to do it?
I was a bit confused finding which path actually make it a loop... but
there's none. :-/
Thanks,
Namhyung
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists