Re: [PATCH] kexec: use min_t/max_t to avoid 'if (foo == bar)' thing

2013-02-24 Thread Zhang Yanfei
于 2013年02月24日 18:55, Simon Horman 写道: > On Sun, Feb 24, 2013 at 12:03:00PM +0800, Zhang Yanfei wrote: >> This is just a tweak: using min_t/max_t to avoid `if (foo = bar)' thing. > > - s/=/==/; s/[/]max_t// > > > But in any case the change is more than that. > I'd be happier with something like:

Re: [PATCH] kexec: use min_t/max_t to avoid 'if (foo == bar)' thing

2013-02-24 Thread Simon Horman
On Sun, Feb 24, 2013 at 12:03:00PM +0800, Zhang Yanfei wrote: > This is just a tweak: using min_t/max_t to avoid `if (foo = bar)' thing. - s/=/==/; s/[/]max_t// But in any case the change is more than that. I'd be happier with something like: kexec: Use min_t to simplify logic > Cc: "E