diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2016-11-23 00:15:59 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-11-24 23:58:31 +0300 |
commit | a74f43675790ae55b908940652b4b04b236d8f18 (patch) | |
tree | d189b5b172644d771f5053c36a2dae80e84f5a7b /drivers/scsi/nsp32_io.h | |
parent | bed5ab6375cd556d93661bbcea0d18c109c50df1 (diff) | |
download | linux-a74f43675790ae55b908940652b4b04b236d8f18.tar.xz |
powercap/intel_rapl: Propagate error code when registration fails
If rapl_package_register_powercap() fails in rapl_add_package() the
function happily returns 0.
Capture the error code and propagate it.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/scsi/nsp32_io.h')
0 files changed, 0 insertions, 0 deletions