projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fab63c
)
drm: rcar-du: Remove memory allocation error message
author
Laurent Pinchart
<
[email protected]
>
Mon, 3 Oct 2016 14:42:07 +0000
(17:42 +0300)
committer
Laurent Pinchart
<
[email protected]
>
Mon, 14 Nov 2016 01:35:14 +0000
(
03:35
+0200)
Memory allocation failures print messages to the kernel log, there's no
need to print an extra one. Remove the duplicate message.
Signed-off-by: Laurent Pinchart <
[email protected]
>
Reviewed-by: Gustavo Padovan <
[email protected]
>
drivers/gpu/drm/rcar-du/rcar_du_lvdsenc.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/rcar-du/rcar_du_lvdsenc.c
b/drivers/gpu/drm/rcar-du/rcar_du_lvdsenc.c
index ef3a50321eccbd0d46c9899c0fd06f125277c621..b74105a80a6e23f48f024ad64e9c3261216040c5 100644
(file)
--- a/
drivers/gpu/drm/rcar-du/rcar_du_lvdsenc.c
+++ b/
drivers/gpu/drm/rcar-du/rcar_du_lvdsenc.c
@@
-241,10
+241,8
@@
int rcar_du_lvdsenc_init(struct rcar_du_device *rcdu)
for (i = 0; i < rcdu->info->num_lvds; ++i) {
lvds = devm_kzalloc(&pdev->dev, sizeof(*lvds), GFP_KERNEL);
- if (lvds == NULL) {
- dev_err(&pdev->dev, "failed to allocate private data\n");
+ if (lvds == NULL)
return -ENOMEM;
- }
lvds->dev = rcdu;
lvds->index = i;