summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8723bs/hal
diff options
context:
space:
mode:
authorRoss Schmidt <ross.schm.dev@gmail.com>2020-10-03 20:17:37 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-10-05 09:59:31 +0200
commit046bd5c9c2833fc6a0dd8bc200f6e2ab55af1755 (patch)
treeb25bbc990e4e70736957c4b6b411966dd300aef8 /drivers/staging/rtl8723bs/hal
parent87fe08d74ca66d8d993bf28e23e70c2a80ba08ee (diff)
staging: rtl8723bs: replace _RND4 with round_up()
Use round_up instead of inline _RND4. Signed-off-by: Ross Schmidt <ross.schm.dev@gmail.com> Link: https://lore.kernel.org/r/20201004011743.10750-2-ross.schm.dev@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8723bs/hal')
-rw-r--r--drivers/staging/rtl8723bs/hal/sdio_ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8723bs/hal/sdio_ops.c b/drivers/staging/rtl8723bs/hal/sdio_ops.c
index 544d5a093229..465f51b99d39 100644
--- a/drivers/staging/rtl8723bs/hal/sdio_ops.c
+++ b/drivers/staging/rtl8723bs/hal/sdio_ops.c
@@ -474,7 +474,7 @@ static u32 sdio_write_port(
return _FAIL;
}
- cnt = _RND4(cnt);
+ cnt = round_up(cnt, 4);
HalSdioGetCmdAddr8723BSdio(adapter, addr, cnt >> 2, &addr);
if (cnt > psdio->block_transfer_len)