Skip to content
Commit a3d3c53f authored by Peter Ujfalusi's avatar Peter Ujfalusi Committed by Darren Hart
Browse files

intel-rst: Clean up ACPI add function



There is no need to initialize the error since it is going to be assigned
with the return status of at least on of the device_create_file() call.

We can return directly in case the first file creation fails.
All the labels for goto can be removed (along with the gotos) as well.
Tell the compiler that the failures are unlikely so it can create better
binaries.

Signed-off-by: default avatarPeter Ujfalusi <peter.ujfalusi@gmail.com>
Signed-off-by: default avatarDarren Hart <dvhart@linux.intel.com>
parent d46a7640
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment