From: Guenter Roeck Date: Wed, 28 Mar 2012 16:03:26 +0000 (-0700) Subject: hwmon: (acpi_power_meter) Fix compiler warning seen in some configurations X-Git-Tag: v3.4-rc3~16^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=776cdc11b3b0fc21e34600e22abe1c8209d2f3f0;p=pandora-kernel.git hwmon: (acpi_power_meter) Fix compiler warning seen in some configurations In some configurations, BUG() does not result in an endless loop but returns to the caller. This results in the following compiler warning: drivers/hwmon/acpi_power_meter.c: In function 'show_str': drivers/hwmon/acpi_power_meter.c:380: warning: 'val' may be used uninitialized in this function Fix the warning by setting val to an empty string after BUG(). Signed-off-by: Guenter Roeck Reviewed-by: Robert Coulson --- Reading git-diff-tree failed