diff options
author | Dongjiu Geng <gengdongjiu@huawei.com> | 2017-10-17 10:02:20 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rjw@rjwysocki.net> | 2017-10-23 13:05:21 +0200 |
commit | c49870e89f4d2c21c76ebe90568246bb0f3572b7 (patch) | |
tree | 8051010b3db775ff57549af86ac3aadb9a211af3 /scripts/stackdelta | |
parent | ACPI / APEI: adjust a local variable type in ghes_ioremap_pfn_irq() (diff) | |
download | linux-c49870e89f4d2c21c76ebe90568246bb0f3572b7.tar.xz linux-c49870e89f4d2c21c76ebe90568246bb0f3572b7.zip |
ACPI / APEI: remove the unused dead-code for SEA/NMI notification type
For the SEA notification, the two functions ghes_sea_add() and
ghes_sea_remove() are only called when CONFIG_ACPI_APEI_SEA
is defined. If not, it will return errors in the ghes_probe()
and not continue. If the probe is failed, the ghes_sea_remove()
also has no chance to be called. Hence, remove the unnecessary
handling when CONFIG_ACPI_APEI_SEA is not defined.
For the NMI notification, it has the same issue as SEA notification,
so also remove the unused dead-code for it.
Signed-off-by: Dongjiu Geng <gengdongjiu@huawei.com>
Tested-by: Tyler Baicar <tbaicar@codeaurora.org>
Reviewed-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'scripts/stackdelta')
0 files changed, 0 insertions, 0 deletions