Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1631113ybb; Thu, 26 Mar 2020 04:34:28 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtaEhnoncd1VAg38fyMTvsXH/I6ASdqey/EfVBKgfZsjscy+dMYfkjDYC/e4P9M4eZC+hr0 X-Received: by 2002:a9d:6744:: with SMTP id w4mr5912850otm.220.1585222468083; Thu, 26 Mar 2020 04:34:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585222468; cv=none; d=google.com; s=arc-20160816; b=YkqI3yxn7MbU/vFnf36zNalWf23aA70X828EhR+UQS3VPLG0aN5vzHSU5G7n2tAhOE ZCb8y+qnfZjWePARvXLmEpRMhijSvE10uavI0udPk5beGiKy51TrbRuTy4nvqj9lsqsH ylOaIloPySaothDg5ECmQkM0jPahCANvECHjc/kIYRygOhNUTobBT/DKVdCgr7MxYUcF f/t4Kg2TYXGDF9FPPmj2BH/M+fFqCN6E6x+VrI3aEtrGU/08tEqNrc3P6DArah393KfD i4yb2G/Iv2tJfOuDW8E7SClZnR/algat1TA0yi5MFajbQPsF7YknBHpzKfQud4h9o8Xr npVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:to:from:date:dkim-signature; bh=PHcs4GB3AoNw6GTKIzaWPrLDhOAMwn19frkFdnLFbkE=; b=MzbrZZuU3CQcQc0eERNb0vvNQjM6QjWunZMt891FpKsGGAdCEgCtuRrjKaRkMmCL9Z c1iFvesrfUoLbmE0OldqhKa9XfazuaU6XzuXFAQ6VAaJ/ifk7HI79bL+vsw+PD18rF0j l/bP38zQKpzgPh6ZRzjHsmqymH3k30Nk9d2I8b1rpXtGccuQ63J4WHmdBWTcfmpltxJh 3MslrLYivwriHeumi1tnyKVgqWyXLEWHYqyu+tnD8FRGth03lk0xxYgA4IvIQQEQqyUu QWquQJ/bD978BLXxvbuDlctUPp7OczJJZ/CRtAo2hsJiFwIJs79jauKsC1V6eIhPz31o IdaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Gf5zVKKM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p21si993235oto.4.2020.03.26.04.34.15; Thu, 26 Mar 2020 04:34:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Gf5zVKKM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727991AbgCZLce (ORCPT + 99 others); Thu, 26 Mar 2020 07:32:34 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:43293 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727900AbgCZLce (ORCPT ); Thu, 26 Mar 2020 07:32:34 -0400 Received: by mail-pl1-f196.google.com with SMTP id v23so2002727ply.10 for ; Thu, 26 Mar 2020 04:32:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=PHcs4GB3AoNw6GTKIzaWPrLDhOAMwn19frkFdnLFbkE=; b=Gf5zVKKMsc5hD/OTXIgHwmE5TJY0TNUX98X4+6mpDQZE6rshNeMhbuw6VuBz8ZNASR I39FDvDX0PTynGwTyTcSueFrz/QCyEuO94YnZM6hxweS+ja6YkhQJBclQwIK5NT4pJBE +yxLkSFvcOOHzNlxBRNAklgD19kU/P+tmi0MqT4MwyXPIE4rGYFJ9vEuME2n0R89hehD HvjpctL/lhDMSZMLRsic6KC/I3o07MSyYhj87G4HT3mthePcCNG27N8wrlT2Tg4OAcyZ iJW+fddEDO+Y30KB1yYeyaTvmJ+pt5a0QCgNqlB7zpUzLPcYj5euu0YfSJOl3FYHuhcx +nUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=PHcs4GB3AoNw6GTKIzaWPrLDhOAMwn19frkFdnLFbkE=; b=t4oaATQYQG/wrQh5iDIZbDjbqDW3voyIaIk7jjdG8+wK2OLTgxFhEwHCMEDI7i4NUj urdDvV1aCyY5cvuhJn59lLMVZnMbGstIg0RJez1IRuSWpAqMw4YnMrw4JrrLG/AymglI gdSn063JZriEeaOuCHn0vpJ8NQ0Xo0/uQQaWA+rgBRvq/3QEtFvWn9rM/k0sK0+0/Wpv utYdqhHKTu0Hy5Kd+nYh/aga12d3UHtvokK3TNS81J+LRzToi5V2+o7ANRF7UXPrByGn WI5U84awuykRw5fioJSHWkgfIS969imJM8Ntkzlo0evO1JuGuGy4xbN2cmHb+U7tiGMf fn8w== X-Gm-Message-State: ANhLgQ3G1Rdx4UBrtWhEkWbL9pyQiUqK0zJ93G50SeR0m0KT7orYjkJe /cyvHGTzPFt5ld4UeJtQ4Ks= X-Received: by 2002:a17:90a:5d0a:: with SMTP id s10mr2650362pji.166.1585222352911; Thu, 26 Mar 2020 04:32:32 -0700 (PDT) Received: from simran-Inspiron-5558 ([2405:205:1208:56c8:8124:5e4b:ea06:7595]) by smtp.gmail.com with ESMTPSA id 132sm1479454pfc.183.2020.03.26.04.32.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Mar 2020 04:32:32 -0700 (PDT) Date: Thu, 26 Mar 2020 17:02:10 +0530 From: Simran Singhal To: Greg Kroah-Hartman , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, outreachy-kernel Subject: [PATCH] staging: rtl8723bs: hal: Remove unnecessary cast on void pointer Message-ID: <20200326113210.GA29951@simran-Inspiron-5558> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Assignment to a typed pointer is sufficient in C. No cast is needed. The following Coccinelle script was used to detect this: @r@ expression x; void* e; type T; identifier f; @@ ( *((T *)e) | ((T *)x)[...] | ((T*)x)->f | - (T*) e ) Signed-off-by: Simran Singhal --- drivers/staging/rtl8723bs/hal/odm_CfoTracking.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8723bs/hal/odm_CfoTracking.c b/drivers/staging/rtl8723bs/hal/odm_CfoTracking.c index 34d83b238265..3ea1972545e5 100644 --- a/drivers/staging/rtl8723bs/hal/odm_CfoTracking.c +++ b/drivers/staging/rtl8723bs/hal/odm_CfoTracking.c @@ -298,7 +298,7 @@ void ODM_CfoTracking(void *pDM_VOID) void ODM_ParsingCFO(void *pDM_VOID, void *pPktinfo_VOID, s8 *pcfotail) { PDM_ODM_T pDM_Odm = (PDM_ODM_T)pDM_VOID; - struct odm_packet_info *pPktinfo = (struct odm_packet_info *)pPktinfo_VOID; + struct odm_packet_info *pPktinfo = pPktinfo_VOID; PCFO_TRACKING pCfoTrack = &pDM_Odm->DM_CfoTrack; u8 i; -- 2.17.1