From: Len Brown Date: Thu, 7 Feb 2008 09:24:01 +0000 (-0500) Subject: ACPI: fix build warning X-Git-Tag: v2.6.25-rc1~297^2 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7143156c9ceee1a072c57aac8729d2dec5b3bf1;p=linux-2.6 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 --- diff --git a/drivers/acpi/system.c b/drivers/acpi/system.c index ce881713f7..55cf4c05bb 100644 --- a/drivers/acpi/system.c +++ b/drivers/acpi/system.c @@ -357,8 +357,8 @@ void acpi_irq_stats_init(void) } 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();