Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 176344
b: refs/heads/master
c: 603c4ba
h: refs/heads/master
v: v3
  • Loading branch information
Phil Carmody authored and Linus Torvalds committed Dec 15, 2009
1 parent 69a2cdd commit b89435d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9385565e20c4acf97cd8e2fd7155750e578edcc4
refs/heads/master: 603c4ba96be998a8dd7a6f9b23681c49acdf4b64
5 changes: 5 additions & 0 deletions trunk/include/linux/err.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ static inline long IS_ERR(const void *ptr)
return IS_ERR_VALUE((unsigned long)ptr);
}

static inline long IS_ERR_OR_NULL(const void *ptr)
{
return !ptr || IS_ERR_VALUE((unsigned long)ptr);
}

/**
* ERR_CAST - Explicitly cast an error-valued pointer to another pointer type
* @ptr: The pointer to cast.
Expand Down

0 comments on commit b89435d

Please sign in to comment.