Skip to content

Commit

Permalink
nubus: Remove cast to void pointer
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Himanshu Jha authored and Geert Uytterhoeven committed Oct 21, 2019
1 parent 54ecb8f commit 51b67a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/nubus/nubus.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 51b67a6

Please sign in to comment.