diff options
author | Guenter Roeck <linux@roeck-us.net> | 2012-03-24 08:38:21 -0700 |
---|---|---|
committer | Guenter Roeck <guenter.roeck@ericsson.com> | 2012-04-01 10:24:34 -0700 |
commit | 6394011d65b7e74666f07cca98747601cf8298fa (patch) | |
tree | 18036d2fd612797970611b65f19c91947687af9f /lib/bcd.c | |
parent | 52f30f77171f934cb9562908cb279178b890a048 (diff) | |
download | op-kernel-dev-6394011d65b7e74666f07cca98747601cf8298fa.zip op-kernel-dev-6394011d65b7e74666f07cca98747601cf8298fa.tar.gz |
hwmon: (f75375s) Fix warning message 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/f75375s.c: In function 'duty_mode_enabled':
drivers/hwmon/f75375s.c:280: warning: control reaches end of non-void function
drivers/hwmon/f75375s.c: In function 'auto_mode_enabled':
drivers/hwmon/f75375s.c:295: warning: control reaches end of non-void function
Fix the warning by returning something sensible after BUG().
Cc: Nikolaus Schulz <schulz@macnetix.de>
Cc: Riku Voipio <riku.voipio@iki.fi>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Diffstat (limited to 'lib/bcd.c')
0 files changed, 0 insertions, 0 deletions