diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2016-09-06 22:17:33 +0900 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-09-23 17:53:45 -0400 |
commit | 720873bf428db0859ebbcf6b86ed510688b4e0b8 (patch) | |
tree | f94e2b2c6306c94cfad474827478ef1223b07d08 /drivers/video/exynos | |
parent | 24f5aec3646f2a22d8ff8e02c07d6c9a92a5092a (diff) | |
download | u-boot-imx-720873bf428db0859ebbcf6b86ed510688b4e0b8.zip u-boot-imx-720873bf428db0859ebbcf6b86ed510688b4e0b8.tar.gz u-boot-imx-720873bf428db0859ebbcf6b86ed510688b4e0b8.tar.bz2 |
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/exynos')
-rw-r--r-- | drivers/video/exynos/exynos_dp_lowlevel.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/video/exynos/exynos_dp_lowlevel.c b/drivers/video/exynos/exynos_dp_lowlevel.c index f978473..aae78a8 100644 --- a/drivers/video/exynos/exynos_dp_lowlevel.c +++ b/drivers/video/exynos/exynos_dp_lowlevel.c @@ -881,11 +881,7 @@ void exynos_dp_set_lane_count(struct exynos_dp *dp_regs, unsigned char count) unsigned int exynos_dp_get_lane_count(struct exynos_dp *dp_regs) { - unsigned int reg; - - reg = readl(&dp_regs->lane_count_set); - - return reg; + return readl(&dp_regs->lane_count_set); } unsigned char exynos_dp_get_lanex_pre_emphasis(struct exynos_dp *dp_regs, |