diff options
author | 2017-09-11 05:44:22 +0000 | |
---|---|---|
committer | 2017-09-11 05:44:22 +0000 | |
commit | 675d1f44802acf356b8e5c5fa600df7041ca7fac (patch) | |
tree | 1abc7ea37512e6b1ccb704f5b2e8aaab1c8cca14 /sys | |
parent | Remove whitespace in inline assembly output constraint strings. While (diff) | |
download | wireguard-openbsd-675d1f44802acf356b8e5c5fa600df7041ca7fac.tar.xz wireguard-openbsd-675d1f44802acf356b8e5c5fa600df7041ca7fac.zip |
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')
-rw-r--r-- | sys/arch/armv7/omap/nxphdmi.c | 4 |
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++) |