]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd4fd608b7bea797fd1f512c8260723a830fbc45f
treeadafb42ab3216237e602218b6355dc6e527fe245
parent9692990e51a9da3c7aecf5e66d55c8741f42a4cd
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