From: Uwe Kleine-König Date: Tue, 22 Mar 2011 23:34:05 +0000 (-0700) Subject: include/linux/err.h: add a function to cast error-pointers to a return value X-Git-Tag: v2.6.39-rc1~267 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa9ee9c4b9885dfdf8eccac19b8b4fc8a7c53288;p=pandora-kernel.git 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed