diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2005-04-14 12:42:17 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2005-04-14 12:42:17 +0000 |
commit | 0376f10f6c035e7fa72d59fdf7b92fb4ec4f2c26 (patch) | |
tree | 4a95d8131e42c023c194b39bd9f91035810fe9d6 /sys/dev/pci/maestro.c | |
parent | 2d21004459b6f5706b65f83b0b3632e9ccf9add6 (diff) |
make sure round_blocksize does not produce 0 after alignment
Diffstat (limited to 'sys/dev/pci/maestro.c')
-rw-r--r-- | sys/dev/pci/maestro.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/maestro.c b/sys/dev/pci/maestro.c index 866ba27a9c3..98d77d80729 100644 --- a/sys/dev/pci/maestro.c +++ b/sys/dev/pci/maestro.c @@ -1,4 +1,4 @@ -/* $OpenBSD: maestro.c,v 1.16 2003/06/06 02:56:39 fgsch Exp $ */ +/* $OpenBSD: maestro.c,v 1.17 2005/04/14 12:42:16 mickey Exp $ */ /* $FreeBSD: /c/ncvs/src/sys/dev/sound/pci/maestro.c,v 1.3 2000/11/21 12:22:11 julian Exp $ */ /* * FreeBSD's ESS Agogo/Maestro driver @@ -567,7 +567,7 @@ maestro_round_blocksize(self, blk) void *self; int blk; { - return (blk & ~0xf); + return ((blk + 0xf) & ~0xf); } size_t |