summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/vt8500/pinctrl-wm8750.c
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2017-12-28 16:12:17 +0100
committerLinus Walleij <linus.walleij@linaro.org>2018-01-08 08:15:46 +0100
commit659e7142bd91a2054368f281801f8c47633e4487 (patch)
treef7a8554a5e9818c44bf1d82f281c088650885ff7 /drivers/pinctrl/vt8500/pinctrl-wm8750.c
parentpinctrl: tegra: Delete two error messages for a failed memory allocation in t... (diff)
downloadlinux-659e7142bd91a2054368f281801f8c47633e4487.tar.xz
linux-659e7142bd91a2054368f281801f8c47633e4487.zip
pinctrl: vt8500: Delete an error message for a failed memory allocation in five functions
Omit an extra message for a memory allocation failure in these functions. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/vt8500/pinctrl-wm8750.c')
-rw-r--r--drivers/pinctrl/vt8500/pinctrl-wm8750.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/pinctrl/vt8500/pinctrl-wm8750.c b/drivers/pinctrl/vt8500/pinctrl-wm8750.c
index 74f7b3a18f3a..c46d6946c8f5 100644
--- a/drivers/pinctrl/vt8500/pinctrl-wm8750.c
+++ b/drivers/pinctrl/vt8500/pinctrl-wm8750.c
@@ -366,10 +366,8 @@ static int wm8750_pinctrl_probe(struct platform_device *pdev)
struct wmt_pinctrl_data *data;
data = devm_kzalloc(&pdev->dev, sizeof(*data), GFP_KERNEL);
- if (!data) {
- dev_err(&pdev->dev, "failed to allocate data\n");
+ if (!data)
return -ENOMEM;
- }
data->banks = wm8750_banks;
data->nbanks = ARRAY_SIZE(wm8750_banks);