summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2015-12-09 14:25:47 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2015-12-09 14:25:47 +0000
commitc2c1d8b112078909e932f1c01057d23fe5b3a104 (patch)
tree19917429a4715de4dd1cc7c593b6de1afaae016d /sys/dev
parent7ca0816e959d8ffe0b8f8cdb9a224950107904fb (diff)
No need to check if size = az->pstream.buffer.size is zero, as
this is handled in audio(4) layer. From Alexey Suslikov <alexey.suslikov at gmail.com>
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/azalia.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/dev/pci/azalia.c b/sys/dev/pci/azalia.c
index 779852d07b2..721f6d7cff8 100644
--- a/sys/dev/pci/azalia.c
+++ b/sys/dev/pci/azalia.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: azalia.c,v 1.223 2015/12/07 03:04:45 jsg Exp $ */
+/* $OpenBSD: azalia.c,v 1.224 2015/12/09 14:25:46 ratchov Exp $ */
/* $NetBSD: azalia.c,v 1.20 2006/05/07 08:31:44 kent Exp $ */
/*-
@@ -4055,12 +4055,6 @@ azalia_round_blocksize(void *v, int blk)
/* number of blocks must be <= HDA_BDL_MAX */
az = v;
size = az->pstream.buffer.size;
-#ifdef DIAGNOSTIC
- if (size <= 0) {
- printf("%s: size is 0", __func__);
- return 256;
- }
-#endif
if (size > HDA_BDL_MAX * blk) {
blk = size / HDA_BDL_MAX;
if (blk & 0x7f)