diff options
author | Phil Carmody <ext-phil.2.carmody@nokia.com> | 2009-12-15 03:00:29 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-12-15 17:53:27 +0100 |
commit | 603c4ba96be998a8dd7a6f9b23681c49acdf4b64 (patch) | |
tree | 1b85fc526219085ceaffca54150eee64c3aba4a0 /drivers/char/misc.c | |
parent | ioc3/ioc4: fix error path on driver registration (diff) | |
download | linux-603c4ba96be998a8dd7a6f9b23681c49acdf4b64.tar.xz linux-603c4ba96be998a8dd7a6f9b23681c49acdf4b64.zip |
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 <ext-phil.2.carmody@nokia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions