summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>2014-06-26 15:40:00 +0200
committerLee Jones <lee.jones@linaro.org>2014-07-09 15:58:13 +0200
commit932861748053a25848010aecbb15f23f455517b1 (patch)
tree4ad2016c529750af9c85670f73f1e5a9d3bd4c69
parentmfd: sec-core: Prepare regulators for suspend state to reduce power-consumption (diff)
downloadlinux-932861748053a25848010aecbb15f23f455517b1.tar.xz
linux-932861748053a25848010aecbb15f23f455517b1.zip
mfd: ab8500-debugfs.c: Cleaning up values that are never used
Remove variable that are never used This was found using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se> Signed-off-by: Lee Jones <lee.jones@linaro.org>
-rw-r--r--drivers/mfd/ab8500-debugfs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mfd/ab8500-debugfs.c b/drivers/mfd/ab8500-debugfs.c
index d1a22aae2df5..d514e3646f2a 100644
--- a/drivers/mfd/ab8500-debugfs.c
+++ b/drivers/mfd/ab8500-debugfs.c
@@ -1350,12 +1350,11 @@ static int ab8500_print_all_banks(struct seq_file *s, void *p)
{
struct device *dev = s->private;
unsigned int i;
- int err;
seq_printf(s, AB8500_NAME_STRING " register values:\n");
for (i = 0; i < AB8500_NUM_BANKS; i++) {
- err = seq_printf(s, " bank 0x%02X:\n", i);
+ seq_printf(s, " bank 0x%02X:\n", i);
ab8500_registers_print(dev, i, s);
}