diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2016-09-06 16:17:33 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-09-24 00:53:45 +0300 |
commit | 720873bf428db0859ebbcf6b86ed510688b4e0b8 (patch) | |
tree | f94e2b2c6306c94cfad474827478ef1223b07d08 /drivers/video/bridge | |
parent | 24f5aec3646f2a22d8ff8e02c07d6c9a92a5092a (diff) | |
download | u-boot-720873bf428db0859ebbcf6b86ed510688b4e0b8.tar.xz |
video: squash lines for immediate return
For vidconsole_post_probe(), it is common coding style to let a
probe method return the value of a register function.
The others will become simple wrapper functions.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Anatolij Gustschin <agust@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Acked-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'drivers/video/bridge')
-rw-r--r-- | drivers/video/bridge/ptn3460.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/video/bridge/ptn3460.c b/drivers/video/bridge/ptn3460.c index 2e2ae7c5a6..f9d3720c8f 100644 --- a/drivers/video/bridge/ptn3460.c +++ b/drivers/video/bridge/ptn3460.c @@ -11,14 +11,9 @@ static int ptn3460_attach(struct udevice *dev) { - int ret; - debug("%s: %s\n", __func__, dev->name); - ret = video_bridge_set_active(dev, true); - if (ret) - return ret; - return 0; + return video_bridge_set_active(dev, true); } struct video_bridge_ops ptn3460_ops = { |