aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>2024-03-05 09:12:02 +0100
committerLee Jones <lee@kernel.org>2024-03-07 09:03:29 +0000
commitb49c1caca529c28712ef62bfaabdb9441162a935 (patch)
treeb54636845f1ca949327771fb1eeb7b96e6eeba87 /drivers/video
parentc9128ed7b9edeb2b6f1faec06d96b2fd5bc72cb8 (diff)
downloadlinux-b49c1caca529c28712ef62bfaabdb9441162a935.tar.gz
backlight: pandora_bl: Drop unneeded ENOMEM error message
Core code already prints detailed information about failure of memory allocation. Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20240305-backlight-probe-v2-7-609b0cf24bde@linaro.org Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/backlight/pandora_bl.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/video/backlight/pandora_bl.c b/drivers/video/backlight/pandora_bl.c
index f946470ce9f65..51faa889e01f4 100644
--- a/drivers/video/backlight/pandora_bl.c
+++ b/drivers/video/backlight/pandora_bl.c
@@ -114,10 +114,8 @@ static int pandora_backlight_probe(struct platform_device *pdev)
u8 r;
priv = devm_kmalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL);
- if (!priv) {
- dev_err(&pdev->dev, "failed to allocate driver private data\n");
+ if (!priv)
return -ENOMEM;
- }
memset(&props, 0, sizeof(props));
props.max_brightness = MAX_USER_VALUE;