OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
830dcb4
)
drm/bridge: panel: clean up drm_bridge_add call
author
Inki Dae
<inki.dae@samsung.com>
Mon, 3 Jul 2017 08:42:22 +0000
(17:42 +0900)
committer
Archit Taneja
<architt@codeaurora.org>
Thu, 6 Jul 2017 08:46:24 +0000
(14:16 +0530)
This patch removes unnecessary checking of return value.
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Archit Taneja <architt@codeaurora.org>
Link:
http://patchwork.freedesktop.org/patch/msgid/1499071350-25168-7-git-send-email-inki.dae@samsung.com
drivers/gpu/drm/bridge/panel.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/bridge/panel.c
b/drivers/gpu/drm/bridge/panel.c
index
99f9a4b
..
65ab28c
100644
(file)
--- a/
drivers/gpu/drm/bridge/panel.c
+++ b/
drivers/gpu/drm/bridge/panel.c
@@
-158,7
+158,6
@@
struct drm_bridge *drm_panel_bridge_add(struct drm_panel *panel,
u32 connector_type)
{
struct panel_bridge *panel_bridge;
- int ret;
if (!panel)
return ERR_PTR(EINVAL);
@@
-176,9
+175,7
@@
struct drm_bridge *drm_panel_bridge_add(struct drm_panel *panel,
panel_bridge->bridge.of_node = panel->dev->of_node;
#endif
- ret = drm_bridge_add(&panel_bridge->bridge);
- if (ret)
- return ERR_PTR(ret);
+ drm_bridge_add(&panel_bridge->bridge);
return &panel_bridge->bridge;
}