commit | 5219809a3223e0328ae43a8975bfd6bf713c9ef1 | [log] [tgz] |
---|---|---|
author | Michel Dänzer <michel.daenzer@amd.com> | Fri Dec 01 16:59:38 2017 +0100 |
committer | Michel Dänzer <michel@daenzer.net> | Tue Dec 05 12:49:13 2017 +0100 |
tree | a6ea422617aaaa58bff80def728f9ea83dba0c2c | |
parent | 85c6b0b00ab894116880d2338776727ccff2d5c3 [diff] |
amdgpu: Simplify error handling in parse_one_line * Move empty/commented line check before the strdup and return -EAGAIN directly * Initialize r = -EAGAIN and remove redundant assignments * Set r = -ENOMEM if last strdup fails, and remove redundant goto Acked-by: Slava Abramov <slava.abramov@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>