From: jsg Date: Thu, 7 May 2015 00:00:52 +0000 (+0000) Subject: add missing braces X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=022afbd7e000a89ddaf64059eb9372caa56b7194;p=openbsd add missing braces ok miod@ --- diff --git a/sys/arch/sparc64/dev/mgiic.c b/sys/arch/sparc64/dev/mgiic.c index 2187d2f01a6..6d1206a95f4 100644 --- a/sys/arch/sparc64/dev/mgiic.c +++ b/sys/arch/sparc64/dev/mgiic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mgiic.c,v 1.2 2008/04/22 01:44:19 deraadt Exp $ */ +/* $OpenBSD: mgiic.c,v 1.3 2015/05/07 00:00:52 jsg Exp $ */ /* * Copyright (c) 2008 Theo de Raadt * @@ -180,10 +180,11 @@ mgiic_i2c_exec(void *arg, i2c_op_t op, i2c_addr_t addr, if (cold || sc->sc_poll) flags |= I2C_F_POLL; - if (cmdlen > 0) + if (cmdlen > 0) { ret = mgiic_xmit(sc, addr & 0x7f, cmdbuf, cmdlen); if (ret != 0) goto done; + } if (len > 0) { if (I2C_OP_WRITE_P(op))