summaryrefslogtreecommitdiffstats
path: root/utils/hwstub/lib
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2014-09-08 10:50:48 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2014-09-08 10:50:48 +0200
commit6cc057f180acfa90d673f03709801388ec415dee (patch)
tree63b41e2f3252b380f354e238b77b1eb40e083946 /utils/hwstub/lib
parent3c558127b83d162636fb27d2ded1f02c88413e37 (diff)
downloadrockbox-6cc057f180acfa90d673f03709801388ec415dee.tar.gz
rockbox-6cc057f180acfa90d673f03709801388ec415dee.tar.bz2
rockbox-6cc057f180acfa90d673f03709801388ec415dee.zip
hwstub: trivial changes
Change-Id: Iacb1721db1ae59d5f359d244fd68234915e611cf
Diffstat (limited to 'utils/hwstub/lib')
-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;