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 <[email protected]> Signed-off-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent c9128ed commit b49c1ca

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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)