Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3368361ybg; Sun, 20 Oct 2019 12:19:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqwV/VlkZMVDNQX3EsDCyZA8P5dl30tBn0TruR4wRdCndAEa7IATbyL33AFqDyCNLvb/S36k X-Received: by 2002:aa7:d753:: with SMTP id a19mr21509057eds.80.1571599144883; Sun, 20 Oct 2019 12:19:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571599144; cv=none; d=google.com; s=arc-20160816; b=rYE76vSAyhFqUQNsC/smxoQ8gM8d5pZb+f4ZmBTYdB3mXH02Gn3zYGQz5SYA7zEfmW SuUKpNeVRFC7/6H+HTQA2WDOBFzrjUGKNuZZFRhp6OiZyq3TJrLtYcLEp4r+TkyrxTM7 H6kUzkdwkymu/cbVN9L1dmiOjj9cXW1VFFt6gE4R0wqouvlA4g7LvWscL7o1Van2C/lY MImvmDUk8VviYBK/ohIdxxXG+7KUJprOS3m7/eWHLv0d7Pf8RapdHbHUsOCn2YLCOsdV NBlKVOFZ6I5f2SYHCs728X2Sq42egGJyMpPHBBkTMLEH2aX75fnHBToULPj/W/iJqa6Q f7ew== 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=34Vdw1WCYqerk3vPMHnUTd4cEYgBGYPHBeKZ2jLQCK0=; b=T+de1cUPjrmLCsmKTOMo37DAUBvOSgND+SC/USDGkKMfwxgmS5t2z82Ucc8EYAH9vz qpEBbmOCIhKEZzw8Ink0cCxLRoNEhwnCQNPmfIEXpAGy+XvHiDNmBSVwE/PLho8Ri/hm Wl/sCMcctL0S6qvU9O/DQqgLOD7K8nhwxGZ748MLXVE3bAPWg0JdK5L5Utez1bkCVsIS YB9VfFL/7Zr8nwo1Bml1Igb/e04VS2DBbXbiw1Wks1Ziy57S5DRcmY5en83EyAMXiKDI 2wHd+EJhXn+6NMyANjAJ9lu/TDPgXkLR2Y49NrW5xXHSmvYZ7E0fURunXKOCHnY/dp61 StOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2019-08-05 header.b=jK84XfyT; 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 oe23si7171223ejb.199.2019.10.20.12.18.38; Sun, 20 Oct 2019 12:19:04 -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-2019-08-05 header.b=jK84XfyT; 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 S1726731AbfJTTSX (ORCPT + 99 others); Sun, 20 Oct 2019 15:18:23 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:41542 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726622AbfJTTSX (ORCPT ); Sun, 20 Oct 2019 15:18:23 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x9KJF1Wg172880; Sun, 20 Oct 2019 19:18:14 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-2019-08-05; bh=34Vdw1WCYqerk3vPMHnUTd4cEYgBGYPHBeKZ2jLQCK0=; b=jK84XfyTARhzekulLY2QAZcAwNEyHgm6f4ryiIF7+u58SPQj/OYZj//JEao+M6TB+SDK UdBBIzkbAAneqBF80CWYjVvf/GQ3UXcxZeV+q+FfT4pnoQh/N2G54283kbEQqoIrJnFj X23FlB+L06j8QCT56Yrx02HzE1S3ZhBpFQ/4y8SqHJJsp0w3Yd+cOxkXx5DGNf02GunI EOM+WNVnSTGeVDddI1sfglasCBzC5JA9k58+UJLQ21glYRt2ZLehNNFjETGXaDCuSp2H IsW1DSTlbahfY3f12VOVRFo5eAusdx84zNmvUmB8U0Gjji+tBmq4YF8quKEDFOJTiszx Gg== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by userp2120.oracle.com with ESMTP id 2vqu4qbqtd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 20 Oct 2019 19:18:14 +0000 Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x9KJHwsF175882; Sun, 20 Oct 2019 19:18:13 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userp3030.oracle.com with ESMTP id 2vrbxrg5kq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 20 Oct 2019 19:18:13 +0000 Received: from abhmp0011.oracle.com (abhmp0011.oracle.com [141.146.116.17]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x9KJIAuZ010905; Sun, 20 Oct 2019 19:18:11 GMT Received: from kadam (/41.57.98.10) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 20 Oct 2019 12:18:09 -0700 Date: Sun, 20 Oct 2019 22:17:59 +0300 From: Dan Carpenter To: Joe Perches Cc: Jules Irenge , devel@driverdev.osuosl.org, outreachy-kernel@googlegroups.com, linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org Subject: Re: [PATCH v1 1/5] staging: wfx: fix warnings of no space is necessary Message-ID: <20191020191759.GJ24678@kadam> References: <20191019140719.2542-1-jbi.octave@gmail.com> <20191019140719.2542-2-jbi.octave@gmail.com> <20191019142443.GH24678@kadam> <20191019180514.GI24678@kadam> <336960fdf88dbed69dd3ed2689a5fb1d2892ace8.camel@perches.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <336960fdf88dbed69dd3ed2689a5fb1d2892ace8.camel@perches.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9416 signatures=668684 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=884 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1908290000 definitions=main-1910200197 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9416 signatures=668684 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=963 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1908290000 definitions=main-1910200196 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Oct 19, 2019 at 01:02:31PM -0700, Joe Perches wrote: > diff -u -p a/rtl8723bs/core/rtw_mlme_ext.c b/rtl8723bs/core/rtw_mlme_ext.c > --- a/rtl8723bs/core/rtw_mlme_ext.c > +++ b/rtl8723bs/core/rtw_mlme_ext.c > @@ -1132,7 +1132,7 @@ unsigned int OnAuthClient(struct adapter > goto authclnt_fail; > } > > - memcpy((void *)(pmlmeinfo->chg_txt), (void *)(p + 2), len); > + memcpy((void *)(pmlmeinfo->chg_txt), (p + 2), len); I wonder why it didn't remove the first void cast? [ The rest of the email is bonus comments for outreachy developers ]. And someone needs to check the final patch probably to remove the extra parentheses around "(p + 2)". Those were necessary when for the cast but not required after the cast is gone. > pmlmeinfo->auth_seq = 3; > issue_auth(padapter, NULL, 0); > set_link_timer(pmlmeext, REAUTH_TO); It's sort of tricky to know what "one thing per patch means". - memset((void *)(&(pHTInfo->SelfHTCap)), 0, + memset((&(pHTInfo->SelfHTCap)), 0, sizeof(pHTInfo->SelfHTCap)); Here the parentheses were never related to the cast so we should leave them as is. In other words, in the first example, if we didn't remove the cast that would be "half a thing per patch" and in the second example that would be "two things in one patch". regards, dan carpenter