diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2016-06-10 06:42:54 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2016-06-10 06:42:54 +0000 |
commit | d880c84b3e2df1dce2fd4434b2994721dbfc8f22 (patch) | |
tree | 7a8969a79d3dad5e15cc7086cb561a5378bac8b0 | |
parent | d9750e8cdfdc0efdd58b4e13160a8fd3bd675c59 (diff) |
test return value not an uninitialised variable
from Tom Cosgrove
-rw-r--r-- | sys/arch/armv7/exynos/crosec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/armv7/exynos/crosec.c b/sys/arch/armv7/exynos/crosec.c index 21178b48534..8507847f1cc 100644 --- a/sys/arch/armv7/exynos/crosec.c +++ b/sys/arch/armv7/exynos/crosec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crosec.c,v 1.1 2015/01/26 02:48:24 bmercer Exp $ */ +/* $OpenBSD: crosec.c,v 1.2 2016/06/10 06:42:53 jsg Exp $ */ /* * Copyright (c) 2013 Patrick Wildt <patrick@blueri.se> * @@ -222,7 +222,7 @@ cros_ec_command_inptr(struct cros_ec_softc *sc, uint8_t cmd, int ret; delay(50000); - cros_ec_send_command(sc, EC_CMD_GET_COMMS_STATUS, 0, + ret = cros_ec_send_command(sc, EC_CMD_GET_COMMS_STATUS, 0, NULL, 0, (uint8_t **)&resp, sizeof(*resp)); if (ret < 0) |