ACPI: fix build warning
drivers/acpi/system.c:360: warning: ignoring return value of ‘sysfs_create_group’, declared with attribute warn_unused_result
Signed-off-by: Len Brown <len.brown@intel.com>
diff --git a/drivers/acpi/system.c b/drivers/acpi/system.c
index ce88171..55cf4c0 100644
--- a/drivers/acpi/system.c
+++ b/drivers/acpi/system.c
@@ -357,8 +357,8 @@
}
interrupt_stats_attr_group.attrs = all_attrs;
- sysfs_create_group(acpi_kobj, &interrupt_stats_attr_group);
- return;
+ if (!sysfs_create_group(acpi_kobj, &interrupt_stats_attr_group))
+ return;
fail:
delete_gpe_attr_array();