From: Phil Carmody Date: Tue, 15 Dec 2009 02:00:29 +0000 (-0800) Subject: err.h: add helper function to simplify pointer error checking X-Git-Tag: v2.6.33-rc1~153 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=603c4ba96be998a8dd7a6f9b23681c49acdf4b64;p=pandora-kernel.git err.h: add helper function to simplify pointer error checking There are quite a few instances in the kernel of checks of pointers both against NULL and against the errno range, handling both cases identically. This additional helper function would simplify such code. [akpm@linux-foundation.org: build fix] Signed-off-by: Phil Carmody Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed