ARM: OMAP2+: Variable "reg" in function omap4_dsi_mux_pads() could be uninitialized
authorYizhuo <yzhai003@ucr.edu>
Sat, 26 Jan 2019 06:32:20 +0000 (22:32 -0800)
committerTony Lindgren <tony@atomide.com>
Tue, 29 Jan 2019 16:54:22 +0000 (08:54 -0800)
commitdc30e70391376ba3987aeb856ae6d9c0706534f1
tree7017561cfc2c451e3a22631e3d6c98e16af5f3ae
parent072167d13ce46d5fcef1a80a53a667a46c9b17e7
ARM: OMAP2+: Variable "reg" in function omap4_dsi_mux_pads() could be uninitialized

In function omap4_dsi_mux_pads(), local variable "reg" could
be uninitialized if function regmap_read() returns -EINVAL.
However, it will be used directly in the later context, which
is potentially unsafe.

Signed-off-by: Yizhuo <yzhai003@ucr.edu>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/display.c