diff options
author | Himanshu Jha | 2017-08-28 15:27:36 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2017-08-29 08:24:04 +0200 |
commit | 67e3e07e82f8657d4fe702fc9c96a513db9bdce1 (patch) | |
tree | d7b9d41f0af27b316e0e76176dbba134ccf3b087 /drivers/staging/rtl8723bs/os_dep/sdio_ops_linux.c | |
parent | staging: rtl8723bs: core: remove cast to void pointer (diff) | |
download | kernel-qcow2-linux-67e3e07e82f8657d4fe702fc9c96a513db9bdce1.tar.gz kernel-qcow2-linux-67e3e07e82f8657d4fe702fc9c96a513db9bdce1.tar.xz kernel-qcow2-linux-67e3e07e82f8657d4fe702fc9c96a513db9bdce1.zip |
staging: rtl8723bs: os_dep: remove cast to void pointer
casting to void pointer from any pointer type and vice-versa is done
implicitly and therefore casting is not needed in such a case.
Signed-off-by: Himanshu Jha <himanshujha199640@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8723bs/os_dep/sdio_ops_linux.c')
-rw-r--r-- | drivers/staging/rtl8723bs/os_dep/sdio_ops_linux.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/rtl8723bs/os_dep/sdio_ops_linux.c b/drivers/staging/rtl8723bs/os_dep/sdio_ops_linux.c index 3aa3e6548fd5..3108a625ada3 100644 --- a/drivers/staging/rtl8723bs/os_dep/sdio_ops_linux.c +++ b/drivers/staging/rtl8723bs/os_dep/sdio_ops_linux.c @@ -431,7 +431,7 @@ s32 _sd_read(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, void *pdata) if (unlikely((cnt == 1) || (cnt == 2))) { int i; - u8 *pbuf = (u8 *)pdata; + u8 *pbuf = pdata; for (i = 0; i < cnt; i++) { @@ -534,7 +534,7 @@ s32 _sd_write(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, void *pdata) if (unlikely((cnt == 1) || (cnt == 2))) { int i; - u8 *pbuf = (u8 *)pdata; + u8 *pbuf = pdata; for (i = 0; i < cnt; i++) { |