summaryrefslogtreecommitdiffstats
path: root/sys/dev/scd/scd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/scd/scd.c')
-rw-r--r--sys/dev/scd/scd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/scd/scd.c b/sys/dev/scd/scd.c
index 3959d646..e84a707 100644
--- a/sys/dev/scd/scd.c
+++ b/sys/dev/scd/scd.c
@@ -751,7 +751,7 @@ trystat:
mbx->sz = sc->data.blksize;
/* for first block */
- mbx->nblk = (bp->bio_bcount + (mbx->sz-1)) / mbx->sz;
+ mbx->nblk = howmany(bp->bio_bcount, mbx->sz);
mbx->skip = 0;
nextblock:
OpenPOWER on IntegriCloud