summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/dev
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2015-05-07 00:00:53 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2015-05-07 00:00:53 +0000
commitb868e8508017de35b3952c6d3b2426ac6dbdcae5 (patch)
tree82fabfba95b14b1cc786abd1582dd58fafc34a15 /sys/arch/sparc64/dev
parent9e3a49ecbfbc5ec2c5b97120f2780de25196e358 (diff)
add missing braces
ok miod@
Diffstat (limited to 'sys/arch/sparc64/dev')
-rw-r--r--sys/arch/sparc64/dev/mgiic.c5
1 files changed, 3 insertions, 2 deletions
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 <deraadt@openbsd.org>
*
@@ -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))