intel-rst: Clean up ACPI add function
authorPeter Ujfalusi <peter.ujfalusi@gmail.com>
Tue, 16 Sep 2014 21:13:56 +0000 (00:13 +0300)
committerDarren Hart <dvhart@linux.intel.com>
Wed, 17 Sep 2014 20:55:54 +0000 (13:55 -0700)
commita3d3c53f738bb931e15b20d3dc5d23722b9ede6a
treea22ba87043bfc58a76a8cba15d5c4893c1d952f6
parentd46a76405fad48a7efc3faf07545fa886a3b271a
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: Peter Ujfalusi <peter.ujfalusi@gmail.com>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
drivers/platform/x86/intel-rst.c