]> git.neil.brown.name Git - history.git/commit
[PATCH] mark IS_ERR as unlikely()
authorAndrew Morton <akpm@osdl.org>
Mon, 23 Aug 2004 06:04:49 +0000 (23:04 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 23 Aug 2004 06:04:49 +0000 (23:04 -0700)
commit3b0b17a8cf0d6c737c79a041626b0528f637b65b
treef156bf23c73d53d10931a1d6c928020bc56ddfff
parent17ccf8a628cd407c68f2df675bd3c363d1d9ca78
[PATCH] mark IS_ERR as unlikely()

It seems fair to assume that it is always unlikely that IS_ERR will return
true.

This patch changes the gcc-3.4-generated kernel text by ~500 bytes (less) so
it's fair to assume that the compiler is indeed propagating unlikeliness out
of inline functions.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/err.h