summaryrefslogtreecommitdiff
path: root/drivers/mtd/inftlcore.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2011-03-22 23:34:05 (GMT)
committerLinus Torvalds <torvalds@linux-foundation.org>2011-03-23 00:44:11 (GMT)
commitfa9ee9c4b9885dfdf8eccac19b8b4fc8a7c53288 (patch)
tree7fa3808a38b2d8f161d750156804e643288e4304 /drivers/mtd/inftlcore.c
parentd404ab0a1133e95557bb7deab2a49b348dfeba85 (diff)
downloadlinux-fa9ee9c4b9885dfdf8eccac19b8b4fc8a7c53288.tar.xz
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>
Diffstat (limited to 'drivers/mtd/inftlcore.c')
0 files changed, 0 insertions, 0 deletions