ACPI: remove superfluous NULL pointer check from acpi_processor_get_throttling_info()
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Tue, 2 Feb 2010 22:37:55 +0000 (14:37 -0800)
committerLen Brown <len.brown@intel.com>
Tue, 16 Feb 2010 08:17:41 +0000 (03:17 -0500)
commitded180e7ebfc324b36a94931f99d0705dcd8da29
tree22c4f4ea4aaf6032e34b2056902ac7f7418d9a88
parent0e026445fb36852d3102cb8bb24868765fe5816a
ACPI: remove superfluous NULL pointer check from acpi_processor_get_throttling_info()

Dan's list contains:

drivers/acpi/processor_throttling.c +1139 acpi_processor_get_throttling_info(11) warning: variable derefenced before check 'pr'

acpi_processor_get_throttling_info() is never called with pr == NULL.

[ bart: the potential NULL pointer dereference was finally fixed in
  (much later than mine) commit 5cfa245 but my patch is still valid ]

Reported-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/processor_throttling.c