Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751274AbdH0HdU (ORCPT ); Sun, 27 Aug 2017 03:33:20 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:35974 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751156AbdH0HdT (ORCPT ); Sun, 27 Aug 2017 03:33:19 -0400 From: Himanshu Jha To: geert@linux-m68k.org Cc: fthain@telegraphics.com.au, linux-kernel@vger.kernel.org, Himanshu Jha Subject: [PATCH] nubus: remove cast to void pointer Date: Sun, 27 Aug 2017 13:02:28 +0530 Message-Id: <1503819148-11676-1-git-send-email-himanshujha199640@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 942 Lines: 31 Casting void pointers to other pointer types in unnecessary. Signed-off-by: Himanshu Jha --- drivers/nubus/nubus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/nubus/nubus.c b/drivers/nubus/nubus.c index df431e8..5450f1a 100644 --- a/drivers/nubus/nubus.c +++ b/drivers/nubus/nubus.c @@ -167,7 +167,7 @@ static unsigned char *nubus_dirptr(const struct nubus_dirent *nd) void nubus_get_rsrc_mem(void *dest, const struct nubus_dirent *dirent, int len) { - unsigned char *t = (unsigned char *)dest; + unsigned char *t = dest; unsigned char *p = nubus_dirptr(dirent); while (len) { @@ -180,7 +180,7 @@ EXPORT_SYMBOL(nubus_get_rsrc_mem); void nubus_get_rsrc_str(void *dest, const struct nubus_dirent *dirent, int len) { - unsigned char *t = (unsigned char *)dest; + unsigned char *t = dest; unsigned char *p = nubus_dirptr(dirent); while (len) { -- 2.7.4