Skip to content

Commit 51b67a6

Browse files
himanshujha199640geertu
authored andcommitted
nubus: Remove cast to void pointer
Casting void pointers to other pointer types is unnecessary. Signed-off-by: Himanshu Jha <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Geert Uytterhoeven <[email protected]>
1 parent 54ecb8f commit 51b67a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/nubus/nubus.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ unsigned char *nubus_dirptr(const struct nubus_dirent *nd)
163163
void nubus_get_rsrc_mem(void *dest, const struct nubus_dirent *dirent,
164164
unsigned int len)
165165
{
166-
unsigned char *t = (unsigned char *)dest;
166+
unsigned char *t = dest;
167167
unsigned char *p = nubus_dirptr(dirent);
168168

169169
while (len) {

0 commit comments

Comments
 (0)