From 84d095f7eabfcd284272e85fc2a46578933b4b6f Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Mon, 11 Sep 2017 05:44:23 +0000 Subject: Don't test if an array is NULL. Fixes the build with clang which raised a -Wtautological-pointer-compare warning. ok ians@ --- sys/arch/armv7/omap/nxphdmi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch/armv7') 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 * 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++) -- cgit v1.2.3