diff options
author | Himanshu Jha <himanshujha199640@gmail.com> | 2017-08-27 09:32:28 +0200 |
---|---|---|
committer | Geert Uytterhoeven <geert@linux-m68k.org> | 2019-10-21 09:08:15 +0200 |
commit | 51b67a6e6592db3b2aa06e870c6546bac095b22b (patch) | |
tree | f8820206c3ed55dc384c22eca9f5a55c0f927195 /drivers/nubus | |
parent | Linux 5.4-rc1 (diff) | |
download | linux-51b67a6e6592db3b2aa06e870c6546bac095b22b.tar.xz linux-51b67a6e6592db3b2aa06e870c6546bac095b22b.zip |
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>
Diffstat (limited to 'drivers/nubus')
-rw-r--r-- | drivers/nubus/nubus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nubus/nubus.c b/drivers/nubus/nubus.c index bb0d63a44f41..f70ba58dbc55 100644 --- a/drivers/nubus/nubus.c +++ b/drivers/nubus/nubus.c @@ -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) { |