]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: sb: Use DIV_ROUND_UP() instead of open-coding it
authorShang XiaoJing <shangxiaojing@huawei.com>
Tue, 27 Sep 2022 14:11:10 +0000 (22:11 +0800)
committerTakashi Iwai <tiwai@suse.de>
Thu, 29 Sep 2022 06:11:55 +0000 (08:11 +0200)
commit7e132b3d88088874ae01ebbdbec9c32d3c2a5118
tree415bde0b111be041adf6112a1713184ff61a70f6
parentc4d3a7bb4f82fc7a4b52bcfe7a36ac5e803b3444
ALSA: sb: Use DIV_ROUND_UP() instead of open-coding it

Use DIV_ROUND_UP() instead of open-coding it, which intents and makes
it more clear what is going on for the casual reviewer.

The Coccinelle references Commit 5f21f5322b3b ("ALSA: usb: Use
DIV_ROUND_UP() instead of open-coding it").

Signed-off-by: Shang XiaoJing <shangxiaojing@huawei.com>
Link: https://lore.kernel.org/r/20220927141110.18033-1-shangxiaojing@huawei.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/isa/sb/emu8000_pcm.c