diff options
| author | David Howells <[email protected]> | 2008-02-07 00:15:26 -0800 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2008-02-07 08:42:25 -0800 |
| commit | d1bc8e95445224276d7896b8b08cbb0b28a0ca80 (patch) | |
| tree | 2742bf56000c4af02314d753b2416b5cabc520d5 /tools/perf/scripts/python | |
| parent | ae5e29798afa2b11a01fcb4fab8b58fee47fe155 (diff) | |
Add an ERR_CAST() function to complement ERR_PTR and co.
Add an ERR_CAST() function to complement ERR_PTR and co. for the purposes
of casting an error entyped as one pointer type to an error of another
pointer type whilst making it explicit as to what is going on.
This provides a replacement for the ERR_PTR(PTR_ERR(p)) construct.
Signed-off-by: David Howells <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions