summaryrefslogtreecommitdiffstats
path: root/utils/hwstub/lib/hwstub.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/hwstub/lib/hwstub.c')
-rw-r--r--utils/hwstub/lib/hwstub.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/hwstub/lib/hwstub.c b/utils/hwstub/lib/hwstub.c
index 036c97a5d9..a2af2f26d4 100644
--- a/utils/hwstub/lib/hwstub.c
+++ b/utils/hwstub/lib/hwstub.c
@@ -190,7 +190,8 @@ int hwstub_write(struct hwstub_device_t *dev, uint32_t addr, void *buf, size_t s
int cnt = 0;
while(sz > 0)
{
- int xfer = _hwstub_write(dev, addr, buf, MIN(sz, dev->buf_sz - sizeof(struct hwstub_write_req_t)));
+ int xfer = _hwstub_write(dev, addr, buf, MIN(sz, dev->buf_sz -
+ sizeof(struct hwstub_write_req_t)));
if(xfer < 0)
return xfer;
sz -= xfer;