Revision 5d22fc25d4fc8096d2d7df27ea1893d4e055e764 authored by Linus Torvalds on 27 May 2016, 22:57:31 UTC, committed by Linus Torvalds on 27 May 2016, 22:57:31 UTC
The do_brk() and vm_brk() return value was "unsigned long" and returned the starting address on success, and an error value on failure. The reasons are entirely historical, and go back to it basically behaving like the mmap() interface does. However, nobody actually wanted that interface, and it causes totally pointless IS_ERR_VALUE() confusion. What every single caller actually wants is just the simpler integer return of zero for success and negative error number on failure. So just convert to that much clearer and more common calling convention, and get rid of all the IS_ERR_VALUE() uses wrt vm_brk(). Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 287980e
File | Mode | Size |
---|---|---|
Kconfig | -rw-r--r-- | 667 bytes |
Makefile | -rw-r--r-- | 209 bytes |
aica.c | -rw-r--r-- | 18.3 KB |
aica.h | -rw-r--r-- | 2.3 KB |
sh_dac_audio.c | -rw-r--r-- | 10.6 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...