From: Sam Ravnborg <sam@ravnborg.org> Date: Sat, 26 Apr 2008 08:40:07 +0200I want to make one comment, directed at Wolfgang. You are absolutely wrong, Wolfgang, in saying that Pavel's original patch isn't easier to review than just changing this code to go: if (copy_*_user()) return -EFAULT; In fact, recoding things like this is an immense extra hardship on a reviewer. I'll explain why. If I see a patch that changes: err = SOMETHING; break; into: err = SOMETHING_ELSE; break; I know, WITH JUST READING THE PATCH, exactly what the side effects of this change are. I DO NOT need to bring the code into my editor and validate side effects to the surrounding code. I know that the assignment to 'err' is being changed, and that's it. Whereas if you change: err = SOMETHING; break; into: if (SOMETHING) return -SOME_ERROR; break; I now have to bring the code into an editor and make sure that the control flow change doesn't break things. For example, maybe the exit of the switch statement was important, to make sure cleanup code runs at the end of the function to release locks, free allocated memory, etc. With Pavel's patch it is not necessary to make such validations so it's INFINITELY easier to validate. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
git: | |
| Elijah Newren | Trying to use git-filter-branch to compress history by removing large, obsolete bi... |
| Raimund Bauer | [wishlist] graphical diff |
| Paolo Ciarrocchi | git --version |
| Junio C Hamano | Re: Implementing branch attributes in git config |
| Renato S. Yamane | Error -71 on device descriptor read/all |
| Luke -Jr | Re: bcm33xx port |
| Rik van Riel | [PATCH -mm 00/24] VM pageout scalability improvements (V12) |
| Willy Tarreau | Re: [Announce] [patch] Modular Scheduler Core and Completely Fair Scheduler [CFS] |
| GVG GVG | ssh_exchange_identification: Connection closed by remote host |
| qw er | OpenBSD sucks |
| Predrag Punosevac | Re: cwm keybindings misbehavior |
| Steve B | Intel Atom and D945GCLF2 |
| Jim Winstead Jr. | Re: Root Disk/Book Disk Compatibility |
| C Wayne Huling | Re: Can males come from... |
| David Willmore | Re: Intel, the Pentium and Linux |
| Al Billings | Porting MUDS |
