mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-11 18:26:02 +00:00
nubus: Remove cast to void pointer
Casting void pointers to other pointer types is unnecessary. Signed-off-by: Himanshu Jha <himanshujha199640@gmail.com> Link: https://lore.kernel.org/r/1503819148-11676-1-git-send-email-himanshujha199640@gmail.com Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
This commit is contained in:
parent
54ecb8f702
commit
51b67a6e65
@ -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,
|
void nubus_get_rsrc_mem(void *dest, const struct nubus_dirent *dirent,
|
||||||
unsigned int len)
|
unsigned int len)
|
||||||
{
|
{
|
||||||
unsigned char *t = (unsigned char *)dest;
|
unsigned char *t = dest;
|
||||||
unsigned char *p = nubus_dirptr(dirent);
|
unsigned char *p = nubus_dirptr(dirent);
|
||||||
|
|
||||||
while (len) {
|
while (len) {
|
||||||
|
Loading…
Reference in New Issue
Block a user