Re: acpi: remove unused LIST_HEAD(acpi_device_list) && more static analysis

2012-07-10 Thread cheng renquan
On Tue, Jul 10, 2012 at 12:00 AM, cheng renquan wrote: > $ git diff HEAD -- drivers/acpi/scan.c > diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c > index 85cbfdc..7d26ae0 100644 > --- a/drivers/acpi/scan.c > +++ b/drivers/acpi/scan.c > @@ -28,7 +28,7 @@ extern struct acpi_device *acpi_root;

acpi: remove unused LIST_HEAD(acpi_device_list) && more static analysis

2012-07-10 Thread cheng renquan
I just came across this file and found this LIST_HEAD(acpi_device_list) was referred in early days before 2.6.11 but not in use nowadays, ^1da177e drivers/acpi/scan.c (Linus Torvalds 2005-04-16 15:20:36 -0700 31) static LIST_HEAD(acpi_device_list); it is expanded to this line of referri