diff options
author | Himanshu Jha <himanshujha199640@gmail.com> | 2017-08-27 13:02:28 +0530 |
---|---|---|
committer | Geert Uytterhoeven <geert@linux-m68k.org> | 2019-10-21 09:08:15 +0200 |
commit | 51b67a6e6592db3b2aa06e870c6546bac095b22b (patch) | |
tree | f8820206c3ed55dc384c22eca9f5a55c0f927195 | |
parent | 54ecb8f7028c5eb3d740bb82b0f1d90f2df63c5c (diff) | |
download | linux-51b67a6e6592db3b2aa06e870c6546bac095b22b.tar.bz2 |
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>
-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) { |