提交 51b67a6e 编写于 作者: H Himanshu Jha 提交者: Geert Uytterhoeven

nubus: Remove cast to void pointer

Casting void pointers to other pointer types is unnecessary.
Signed-off-by: NHimanshu Jha <himanshujha199640@gmail.com>
Link: https://lore.kernel.org/r/1503819148-11676-1-git-send-email-himanshujha199640@gmail.comSigned-off-by: NGeert Uytterhoeven <geert@linux-m68k.org>
上级 54ecb8f7
......@@ -163,7 +163,7 @@ unsigned char *nubus_dirptr(const struct nubus_dirent *nd)
void nubus_get_rsrc_mem(void *dest, const struct nubus_dirent *dirent,
unsigned int len)
{
unsigned char *t = (unsigned char *)dest;
unsigned char *t = dest;
unsigned char *p = nubus_dirptr(dirent);
while (len) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册