diff options
author | Krzysztof Kozlowski | 2024-03-05 09:12:02 +0100 |
---|---|---|
committer | Lee Jones | 2024-03-07 09:03:29 +0000 |
commit | b49c1caca529c28712ef62bfaabdb9441162a935 (patch) | |
tree | b54636845f1ca949327771fb1eeb7b96e6eeba87 /drivers/video | |
parent | c9128ed7b9edeb2b6f1faec06d96b2fd5bc72cb8 (diff) |
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.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/video/backlight/pandora_bl.c b/drivers/video/backlight/pandora_bl.c index f946470ce9f6..51faa889e01f 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; |