Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754265AbbHJIBu (ORCPT ); Mon, 10 Aug 2015 04:01:50 -0400 Received: from mail-pd0-f177.google.com ([209.85.192.177]:36822 "EHLO mail-pd0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753277AbbHJIBE (ORCPT ); Mon, 10 Aug 2015 04:01:04 -0400 From: Shraddha Barke To: Oleg Drokin , Andreas Dilger , Greg Kroah-Hartman , Benjamin Romer , Johnny Kim , Rachel Kim , HPDD-discuss@ml01.01.org, linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org Cc: Shraddha Barke Subject: [PATCH 3/3] Staging: unisys: Remove useless cast on void pointer Date: Mon, 10 Aug 2015 13:30:35 +0530 Message-Id: <1439193635-6063-3-git-send-email-shraddha.6596@gmail.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1439193635-6063-1-git-send-email-shraddha.6596@gmail.com> References: <1439193635-6063-1-git-send-email-shraddha.6596@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1211 Lines: 47 void pointers do not need to be cast to other pointer types. The semantic patch used to find this: @r@ expression x; void* e; type T; identifier f; @@ ( *((T *)e) | ((T *)x)[...] | ((T *)x)->f | - (T *) e ) Signed-off-by: Shraddha Barke --- drivers/staging/unisys/visorbus/visorbus_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/unisys/visorbus/visorbus_main.c b/drivers/staging/unisys/visorbus/visorbus_main.c index 403c13b..db4282f 100644 --- a/drivers/staging/unisys/visorbus/visorbus_main.c +++ b/drivers/staging/unisys/visorbus/visorbus_main.c @@ -677,7 +677,7 @@ unregister_driver_attributes(struct visor_driver *drv) static void dev_periodic_work(void *xdev) { - struct visor_device *dev = (struct visor_device *)xdev; + struct visor_device *dev = xdev; struct visor_driver *drv = to_visor_driver(dev->device.driver); down(&dev->visordriver_callback_lock); -- 2.1.0 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/