aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/mux.c
diff options
context:
space:
mode:
authorStefan Agner <stefan@agner.ch>2015-03-22 01:00:18 +0100
committerTony Lindgren <tony@atomide.com>2015-03-26 10:33:25 -0700
commitafda768f88555a19bbcf66264d9fa622f78ff4fb (patch)
treec0ef414c0c96b518d3904575ba9a43c5d0c69db7 /arch/arm/mach-omap2/mux.c
parentARM: OMAP4: remove dead kconfig option OMAP4_ERRATA_I688 (diff)
downloadlinux-dev-afda768f88555a19bbcf66264d9fa622f78ff4fb.tar.xz
linux-dev-afda768f88555a19bbcf66264d9fa622f78ff4fb.zip
ARM: OMAP2+: remove superfluous NULL pointer check
The NULL pointer check for superset->muxnames will always evaluate true since muxnames is an array within struct omap_mux. Remove the superfluous check to avoid warnings when using LLVM/clang. Signed-off-by: Stefan Agner <stefan@agner.ch> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/mux.c')
-rw-r--r--arch/arm/mach-omap2/mux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/mux.c b/arch/arm/mach-omap2/mux.c
index 78064b0d4db5..176eef6ef338 100644
--- a/arch/arm/mach-omap2/mux.c
+++ b/arch/arm/mach-omap2/mux.c
@@ -1053,7 +1053,7 @@ static void __init omap_mux_init_list(struct omap_mux_partition *partition,
struct omap_mux *entry;
#ifdef CONFIG_OMAP_MUX
- if (!superset->muxnames || !superset->muxnames[0]) {
+ if (!superset->muxnames[0]) {
superset++;
continue;
}