summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/platform/olpc/olpc-xo175-ec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/platform/olpc/olpc-xo175-ec.c b/drivers/platform/olpc/olpc-xo175-ec.c
index 344d14f3da54..48d6f0d87583 100644
--- a/drivers/platform/olpc/olpc-xo175-ec.c
+++ b/drivers/platform/olpc/olpc-xo175-ec.c
@@ -507,6 +507,7 @@ static int olpc_xo175_ec_cmd(u8 cmd, u8 *inbuf, size_t inlen, u8 *resp,
nr_bytes = resp_len;
} else {
nr_bytes = (size_t)ret;
+ ret = 0;
}
resp_len = min(resp_len, nr_bytes);