Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933146AbdIYHO2 (ORCPT ); Mon, 25 Sep 2017 03:14:28 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:10892 "EHLO alexa-out-lv-02.qualcomm.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932578AbdIYHO0 (ORCPT ); Mon, 25 Sep 2017 03:14:26 -0400 X-IronPort-AV: E=Sophos;i="5.42,435,1500966000"; d="scan'208";a="5793443" X-IronPort-AV: E=McAfee;i="5900,7806,8664"; a="1036778361" X-MGA-submission: =?us-ascii?q?MDFVT1Z3KOxR+drDG/QyNjV9hUW3L4KZRIH+ul?= =?us-ascii?q?392G4vmKtg1w0mRMy6r0wEY5xL5pDpsbtSE0WICB5B/M3PYugPGiF180?= =?us-ascii?q?M5Hun7qNOX1btvXJkLlLNuIip5cPTYKAsRouYtf07lkl05Cgt7EEPnVh?= =?us-ascii?q?Su?= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [v2] ath9k: remove cast to void pointer From: Kalle Valo In-Reply-To: <1504248214-3805-1-git-send-email-himanshujha199640@gmail.com> References: <1504248214-3805-1-git-send-email-himanshujha199640@gmail.com> To: Himanshu Jha CC: , , , , , Himanshu Jha User-Agent: pwcli/0.0.0-git (https://github.com/kvalo/pwcli/) Python/2.7.12 Message-ID: <10d2e93c64404c87816c3575c3b94c38@euamsexm01a.eu.qualcomm.com> Date: Mon, 25 Sep 2017 09:14:18 +0200 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: NASANEXM01E.na.qualcomm.com (10.85.0.31) To euamsexm01a.eu.qualcomm.com (10.251.127.40) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 745 Lines: 38 Himanshu Jha wrote: > casting to void pointer from any pointer type and vice-versa is done > implicitly and therefore casting is not needed in such a case. > > Done using Coccinellle. > Semantic Patch used : > > @r@ > expression x; > void* e; > type T; > identifier f; > @@ > > ( > *((T *)e) > | > ((T *)x)[...] > | > ((T *)x)->f > | > - (T *) > e > ) > > > Signed-off-by: Himanshu Jha > Signed-off-by: Kalle Valo Patch applied to ath-next branch of ath.git, thanks. 50c8cd44ed5f ath9k: remove cast to void pointer -- https://patchwork.kernel.org/patch/9933585/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches