ACPI: remove unnecessary argument checking
authorBjorn Helgaas <bjorn.helgaas@hp.com>
Mon, 21 Sep 2009 19:29:30 +0000 (19:29 +0000)
committerLen Brown <len.brown@intel.com>
Fri, 25 Sep 2009 18:24:27 +0000 (14:24 -0400)
commit77c24888b7693eecee904308e0ee51f7f1f564df
tree488f1d22e80ebae8ad55a7a34de1e2812e110cb3
parentc7bcb4e98aca348f6f8ab432496ff35ba7a49a1d
ACPI: remove unnecessary argument checking

acpi_add_single_object() is static, and all callers supply a valid "child"
argument, so we don't need to check it.  This patch also remove some
unnecessary initializations.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/scan.c