compat: backport PTR_RET()
authorLuis R. Rodriguez <mcgrof@do-not-panic.com>
Mon, 3 Dec 2012 21:23:12 +0000 (13:23 -0800)
committerLuis R. Rodriguez <mcgrof@do-not-panic.com>
Mon, 3 Dec 2012 21:23:12 +0000 (13:23 -0800)
commitabad6211abfe5325beb34167e1700f361098483c
tree65176d8963dc6ce250e0996dc5561ce9b406f3eb
parent7ace4e4795b51dd7fb60a749fe767a8187a0f86d
compat: backport PTR_RET()

mcgrof@frijol ~/linux-next (git::master)$ git describe --contains fa9ee9c4
v2.6.39-rc1~267

commit fa9ee9c4b9885dfdf8eccac19b8b4fc8a7c53288
Author: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Date:   Tue Mar 22 16:34:05 2011 -0700

    include/linux/err.h: add a function to cast error-pointers to a return value

    PTR_RET() can be used if you have an error-pointer and are only interested
    in the eventual error value, but not the pointer.  Yields the usual 0 for
    no error, -ESOMETHING otherwise.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
include/linux/compat-2.6.39.h