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
History
File Mode Size
oss
seq
Kconfig -rw-r--r-- 5.9 KB
Makefile -rw-r--r-- 1.3 KB
compress_offload.c -rw-r--r-- 28.5 KB
control.c -rw-r--r-- 49.6 KB
control_compat.c -rw-r--r-- 13.1 KB
ctljack.c -rw-r--r-- 2.2 KB
device.c -rw-r--r-- 6.3 KB
hrtimer.c -rw-r--r-- 4.2 KB
hwdep.c -rw-r--r-- 13.2 KB
hwdep_compat.c -rw-r--r-- 2.3 KB
info.c -rw-r--r-- 19.4 KB
info_oss.c -rw-r--r-- 3.5 KB
init.c -rw-r--r-- 25.9 KB
isadma.c -rw-r--r-- 3.0 KB
jack.c -rw-r--r-- 9.9 KB
memalloc.c -rw-r--r-- 7.5 KB
memory.c -rw-r--r-- 2.5 KB
misc.c -rw-r--r-- 3.9 KB
pcm.c -rw-r--r-- 34.4 KB
pcm_compat.c -rw-r--r-- 21.7 KB
pcm_dmaengine.c -rw-r--r-- 11.6 KB
pcm_drm_eld.c -rw-r--r-- 2.4 KB
pcm_iec958.c -rw-r--r-- 3.2 KB
pcm_lib.c -rw-r--r-- 71.2 KB
pcm_memory.c -rw-r--r-- 13.5 KB
pcm_misc.c -rw-r--r-- 15.6 KB
pcm_native.c -rw-r--r-- 100.9 KB
pcm_timer.c -rw-r--r-- 3.7 KB
pcm_trace.h -rw-r--r-- 3.7 KB
rawmidi.c -rw-r--r-- 49.3 KB
rawmidi_compat.c -rw-r--r-- 4.8 KB
sgbuf.c -rw-r--r-- 4.2 KB
sound.c -rw-r--r-- 10.5 KB
sound_oss.c -rw-r--r-- 7.1 KB
timer.c -rw-r--r-- 52.6 KB
timer_compat.c -rw-r--r-- 4.9 KB
vmaster.c -rw-r--r-- 12.7 KB

back to top