mfd: ab3100-core.c: Fix multiple warnings reported by Checkpatch
authorLee Jones <lee.jones@linaro.org>
Tue, 27 Oct 2015 16:19:31 +0000 (16:19 +0000)
committerLee Jones <lee.jones@linaro.org>
Thu, 14 Jan 2016 08:43:53 +0000 (08:43 +0000)
commit15544cab2880c6990704ff91c0f11c5ccc3aafad
treeadafb42ab3216237e602218b6355dc6e527fe245
parent4374b20c6c4fa8533e932567be9cd8872286da95
mfd: ab3100-core.c: Fix multiple warnings reported by Checkpatch

WARNING: Missing a blank line after declarations
+       struct ab3100 *ab3100 = dev_get_drvdata(dev->parent);
+       if (!ab3100->startup_events_read)

WARNING: Possible unnecessary 'out of memory' message
+       if (!ab3100) {
+               dev_err(&client->dev, "could not allocate AB3100 device\n");

WARNING: else is not generally useful after a break or return
+                               break;
+                       } else {

total: 0 errors, 3 warnings, 996 lines checked

Cc: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/ab3100-core.c