Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp1199201img; Tue, 19 Mar 2019 02:35:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqxxh6vtoXucK7jHbhjXK9X90Sedjjqfrd1QZEpp/HMAAaD0Dm2f+FysdKoUHnga11cSA+JZ X-Received: by 2002:aa7:8150:: with SMTP id d16mr1073501pfn.172.1552988118103; Tue, 19 Mar 2019 02:35:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552988118; cv=none; d=google.com; s=arc-20160816; b=RRjDazpZqf1UBpOBNUuZcAsQxIbDXJWNdSbePQoKjtb4l06wdE3hY9enbxdhqjOIZu ZUfU+IUGnDTnQqqY/79WxDEijc1cNjNx1yKlgPvGkq7mxAaO3A8x8h4JALzXG6ezqcBM FB0qgzItY57shdJFw1qXvIRI+7P+w0eWyI0AsHHCt2SMhaDlQ7XOS64hDNczLIq0CWGe zu1k+Ao5g71Fz+cJm2ytGnJVUIt/C6iekZdhcwE8iGcImUlWcxr+uONciRKXmUVIC+vD 3JnycmjKLuxIz4ydVj44hswlQl01lmDZbLWDBjbBxSgQi17sNz3BJ5M2aggpaC5ux1qw wEeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Hj1oBNh9dfc5D/uVx5TUhTCoSX2HTt+XaXsG30sxQQc=; b=m7pm8dcIZbGp8R6W4g8WLwBFrI76ekH4BD+DvpT4+Z9lg5fOjjGKYCBnHVet6q8izT vxciKzdrbT1yxgqTXekBIAXkMQYY0eaXbt4ifLvMQ/iCOw/Y7R6Q90kHwPTbxpXplF/s hU4rghPiTnkTsvMmO4KhO/Rpo/22SBkXf9/UabBqZtK7ZXDzpMuf1wKpqX7vui/1rWfG PZY0iqGOI+HXGLZFGOCTqVEr3IFeBVYDgZ0CLyD1KDWR1igi/3TTBSNObXI5kOyyuKAS ctfIVd94I9hIjOl6YY28p1ArQUk3gDlAwa107a4sMN8ZD4v6OtRlCJgqMsoIlP2/w78f BQSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=yaPyH6x3; 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=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v7si11242782pgk.464.2019.03.19.02.35.02; Tue, 19 Mar 2019 02:35:18 -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=@oracle.com header.s=corp-2018-07-02 header.b=yaPyH6x3; 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=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727208AbfCSJc6 (ORCPT + 99 others); Tue, 19 Mar 2019 05:32:58 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:32822 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725290AbfCSJc6 (ORCPT ); Tue, 19 Mar 2019 05:32:58 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x2J9NkwT157652; Tue, 19 Mar 2019 09:32:47 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2018-07-02; bh=Hj1oBNh9dfc5D/uVx5TUhTCoSX2HTt+XaXsG30sxQQc=; b=yaPyH6x3R4HJD0+ey30v28sztfqxnSwDh5Bx1J/83Jf0kmyg4m9mzXZzUfLTB5Rdehn6 4NQnIDQfMCiXGTRSy4zinCTrrRVxTANCsWcXljHK3jhTSuQTibwZcl3HotLu/e2FblgT 3o7DEKcnKT1PtBHDSI60RdPhvMYZXr7PhdRkhp04V1S0UtKkf8VT9bTKTbBCPRgUqVO4 vkvQKRgzmEoyHIMUFoL/tZ6dammDcVCwftlLKWRuXCRhF+mGmoYmHG7NuSosH1oicaAe puhVGR74lQGdNNZSFKYbae/IMUQs+LWxkFevlqAaYjZ/nEaeH+aYPd/HG8s9k3iMA7/j 7Q== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp2130.oracle.com with ESMTP id 2r8rjukgt5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 19 Mar 2019 09:32:47 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id x2J9WklZ030556 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 19 Mar 2019 09:32:46 GMT Received: from abhmp0006.oracle.com (abhmp0006.oracle.com [141.146.116.12]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x2J9WkHq016793; Tue, 19 Mar 2019 09:32:46 GMT Received: from kadam (/197.157.0.59) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 19 Mar 2019 02:32:45 -0700 Date: Tue, 19 Mar 2019 12:32:37 +0300 From: Dan Carpenter To: Emanuel Bennici Cc: linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Joe Perches , Hans de Goede , Arnd Bergmann , Hardik Singh Rathore , Nathan Chancellor Subject: Re: [PATCH 05/10] staging: rtl8723bs: Remove unreachable Code in core/rtw_cmd.c Message-ID: <20190319093237.GO2227@kadam> References: <20190317183115.32393-1-benniciemanuel78@gmail.com> <20190317183115.32393-5-benniciemanuel78@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190317183115.32393-5-benniciemanuel78@gmail.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9199 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1903190071 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Mar 17, 2019 at 07:31:08PM +0100, Emanuel Bennici wrote: > The `case INTEl_WIDI_WK_CID`-Statement in Function `u8 rtw_drvextra_cmd_hdl` > wouldn't be used because of CONFIG_INTEL_WIDI. > > Signed-off-by: Emanuel Bennici > --- > drivers/staging/rtl8723bs/core/rtw_cmd.c | 5 ----- > 1 file changed, 5 deletions(-) > > diff --git a/drivers/staging/rtl8723bs/core/rtw_cmd.c b/drivers/staging/rtl8723bs/core/rtw_cmd.c > index 91520ca3bbad..6c6ddf461590 100644 > --- a/drivers/staging/rtl8723bs/core/rtw_cmd.c > +++ b/drivers/staging/rtl8723bs/core/rtw_cmd.c > @@ -2007,11 +2007,6 @@ u8 rtw_drvextra_cmd_hdl(struct adapter *padapter, unsigned char *pbuf) > case CHECK_HIQ_WK_CID: > rtw_chk_hi_queue_hdl(padapter); > break; > -#ifdef CONFIG_INTEL_WIDI > - case INTEl_WIDI_WK_CID: > - intel_widi_wk_hdl(padapter, pdrvextra_cmd->type, pdrvextra_cmd->pbuf); > - break; > -#endif /* CONFIG_INTEL_WIDI */ Could you just remove all the CONFIG_INTEL_WIDI at once? That would be easier to review. (I don't know where the other patches from this series are. Maybe gmail ate them). regards, dan carpenter