Skip to content
Commit 5219809a authored by Michel Dänzer's avatar Michel Dänzer Committed by Michel Dänzer
Browse files

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: default avatarSlava Abramov <slava.abramov@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 85c6b0b0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment