Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 31579
b: refs/heads/master
c: fa79837
h: refs/heads/master
i:
  31577: 11afcdb
  31575: f84cf4f
v: v3
  • Loading branch information
Ralf Baechle authored and Linus Torvalds committed Jul 1, 2006
1 parent 5847a7b commit c69cfad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 10e5dce07e6f8f9cea1b54161a888bb099484f88
refs/heads/master: fa79837d5b562766a3e3cfad4753a3df8e0a1319
4 changes: 3 additions & 1 deletion trunk/include/linux/err.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
* This should be a per-architecture thing, to allow different
* error and pointer decisions.
*/
#define IS_ERR_VALUE(x) unlikely((x) > (unsigned long)-1000L)
#define MAX_ERRNO 4095

#define IS_ERR_VALUE(x) unlikely((x) >= (unsigned long)-MAX_ERRNO)

static inline void *ERR_PTR(long error)
{
Expand Down

0 comments on commit c69cfad

Please sign in to comment.