diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2020-11-10 11:10:19 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2020-11-10 11:10:19 +0000 |
commit | d638bf15ff5690f3bfa7dcec6da1d0f3dcda6388 (patch) | |
tree | 1607ba6dc8a4cfdc003652e52e2d54e1339271cc /sys/dev/fdt/sfp.c | |
parent | 6cc280cd04d9b0052f46b3dff74c6c1a90071116 (diff) |
Fix previous commit; using > 0 to check a pointer isn't quite right.
Diffstat (limited to 'sys/dev/fdt/sfp.c')
-rw-r--r-- | sys/dev/fdt/sfp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/fdt/sfp.c b/sys/dev/fdt/sfp.c index 68cabbf5087..d0f9cb7a217 100644 --- a/sys/dev/fdt/sfp.c +++ b/sys/dev/fdt/sfp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sfp.c,v 1.2 2020/11/10 09:19:43 kettenis Exp $ */ +/* $OpenBSD: sfp.c,v 1.3 2020/11/10 11:10:18 kettenis Exp $ */ /* * Copyright (c) 2019 Patrick Wildt <patrick@blueri.se> * @@ -130,7 +130,7 @@ sfp_i2c_get_sffpage(void *cookie, struct if_sffpage *sff) struct sfp_softc *sc = cookie; uint8_t reg = sff->sff_page; - if (sc->sc_mod_def0_gpio > 0) { + if (sc->sc_mod_def0_gpio) { if (!gpio_controller_get_pin(sc->sc_mod_def0_gpio)) return ENXIO; } |