summaryrefslogtreecommitdiff
path: root/sys/arch/armv7
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2017-09-11 05:44:23 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2017-09-11 05:44:23 +0000
commit84d095f7eabfcd284272e85fc2a46578933b4b6f (patch)
tree1fa2d6cc49a2eb923d15a38b0d02ca887f1f55e4 /sys/arch/armv7
parentf85380952fa2d90ee24cf6824bb7e7c1b64b6151 (diff)
Don't test if an array is NULL. Fixes the build with clang which raised
a -Wtautological-pointer-compare warning. ok ians@
Diffstat (limited to 'sys/arch/armv7')
-rw-r--r--sys/arch/armv7/omap/nxphdmi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/armv7/omap/nxphdmi.c b/sys/arch/armv7/omap/nxphdmi.c
index 9add05ebdd6..322fb3e2d61 100644
--- a/sys/arch/armv7/omap/nxphdmi.c
+++ b/sys/arch/armv7/omap/nxphdmi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nxphdmi.c,v 1.4 2017/08/31 21:39:25 ians Exp $ */
+/* $OpenBSD: nxphdmi.c,v 1.5 2017/09/11 05:44:22 jsg Exp $ */
/*
* Copyright (c) 2016 Ian Sutton <ians@openbsd.org>
* All rights reserved.
@@ -769,7 +769,7 @@ nxphdmi_get_edid(uint8_t *buf, int buflen)
int ret = 0, i;
struct nxphdmi_softc *sc = nxphdmi_cd.cd_devs[0];
- if (buflen < EDID_LENGTH || sc->sc_edid == NULL)
+ if (buflen < EDID_LENGTH)
return -1;
for (i = 0; i < EDID_LENGTH; i++)