* Re: + x86-move-vsyscall-page-out-of-fixmap-above-stack-tidy.patch added to -mm tree
[not found] <200605210951.k4L9pwHq023019@shell0.pdx.osdl.net>
@ 2006-05-21 11:06 ` Chris Wedgwood
2006-05-21 12:09 ` Andrew Morton
0 siblings, 1 reply; 3+ messages in thread
From: Chris Wedgwood @ 2006-05-21 11:06 UTC (permalink / raw)
To: linux-kernel; +Cc: akpm, mm-commits
On Sun, May 21, 2006 at 02:51:54AM -0700, akpm@osdl.org wrote:
> - if ((ret = insert_vm_struct(mm, vma))) {
> + ret = insert_vm_struct(mm, vma);
> + if (ret) {
Urgh.
It's not really any cleaner/clearer so why do that?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: + x86-move-vsyscall-page-out-of-fixmap-above-stack-tidy.patch added to -mm tree
2006-05-21 11:06 ` + x86-move-vsyscall-page-out-of-fixmap-above-stack-tidy.patch added to -mm tree Chris Wedgwood
@ 2006-05-21 12:09 ` Andrew Morton
2006-05-21 18:18 ` Chris Wedgwood
0 siblings, 1 reply; 3+ messages in thread
From: Andrew Morton @ 2006-05-21 12:09 UTC (permalink / raw)
To: Chris Wedgwood; +Cc: linux-kernel
Chris Wedgwood <cw@f00f.org> wrote:
>
> On Sun, May 21, 2006 at 02:51:54AM -0700, akpm@osdl.org wrote:
>
> > - if ((ret = insert_vm_struct(mm, vma))) {
> > + ret = insert_vm_struct(mm, vma);
> > + if (ret) {
>
> Urgh.
>
> It's not really any cleaner/clearer so why do that?
>
Because it's cleaner and clearer and because Linus said.
One is an assignment and the other is a test. These have nothing to do
with each other.
Keep it simple.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: + x86-move-vsyscall-page-out-of-fixmap-above-stack-tidy.patch added to -mm tree
2006-05-21 12:09 ` Andrew Morton
@ 2006-05-21 18:18 ` Chris Wedgwood
0 siblings, 0 replies; 3+ messages in thread
From: Chris Wedgwood @ 2006-05-21 18:18 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel
On Sun, May 21, 2006 at 05:09:51AM -0700, Andrew Morton wrote:
> Because it's cleaner and clearer
some would disagree
> and because Linus said.
ok, sure, that works (i don't personally agree, but if there is
contention it's best that someone just stands up and says "because i
said so")
> One is an assignment and the other is a test. These have nothing to
> do with each other.
should there be a comment in codingstyle about this then perhaps?
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-05-21 18:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <200605210951.k4L9pwHq023019@shell0.pdx.osdl.net>
2006-05-21 11:06 ` + x86-move-vsyscall-page-out-of-fixmap-above-stack-tidy.patch added to -mm tree Chris Wedgwood
2006-05-21 12:09 ` Andrew Morton
2006-05-21 18:18 ` Chris Wedgwood
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®