diff options
| author | Christophe Jaillet <[email protected]> | 2016-10-30 20:35:57 +0100 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2016-11-18 22:41:08 +1100 |
| commit | 5cd4f5cec2374d2c09299211d2b357cc160e49a0 (patch) | |
| tree | ce3b26e8ff9f15d493a6e94c06e27ec55d1ce429 /tools/perf/scripts/python | |
| parent | 7458e8b2ce62e65051fec0bcb14cac35d4f1118d (diff) | |
cxl: Fix memory allocation failure test
'cxl_context_alloc()' does not return an error pointer. It is just a
shortcut for a call to 'kzalloc' with 'sizeof(struct cxl_context)' as the
size parameter.
So its return value should be compared with NULL.
While fixing it, simplify a bit the code.
Signed-off-by: Christophe JAILLET <[email protected]>
Reviewed-by: Andrew Donnellan <[email protected]>
Acked-by: Frederic Barrat <[email protected]>
Acked-by: Ian Munsie <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions