summaryrefslogtreecommitdiffstats
path: root/sound/pci/asihpi/hpidebug.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/pci/asihpi/hpidebug.c')
-rw-r--r--sound/pci/asihpi/hpidebug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/asihpi/hpidebug.c b/sound/pci/asihpi/hpidebug.c
index f37856ab05f8..9570d9a44fe8 100644
--- a/sound/pci/asihpi/hpidebug.c
+++ b/sound/pci/asihpi/hpidebug.c
@@ -52,7 +52,7 @@ void hpi_debug_data(u16 *pdata, u32 len)
int lines;
int cols = 8;
- lines = (len + cols - 1) / cols;
+ lines = DIV_ROUND_UP(len, cols);
if (lines > 8)
lines = 8;