Skip to content

Commit b49c1ca

Browse files
krzklag-linaro
authored andcommitted
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>
1 parent c9128ed commit b49c1ca

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

drivers/video/backlight/pandora_bl.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,8 @@ static int pandora_backlight_probe(struct platform_device *pdev)
114114
u8 r;
115115

116116
priv = devm_kmalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL);
117-
if (!priv) {
118-
dev_err(&pdev->dev, "failed to allocate driver private data\n");
117+
if (!priv)
119118
return -ENOMEM;
120-
}
121119

122120
memset(&props, 0, sizeof(props));
123121
props.max_brightness = MAX_USER_VALUE;

0 commit comments

Comments
 (0)