Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp831823imm; Fri, 8 Jun 2018 06:03:25 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIldZyYuIHQ66jiGNU7+pxNp/mM8hGsvtpB5ipuVyZEET0+kHvwKXWSSqRv+8OEf0TuU5uw X-Received: by 2002:a65:5c89:: with SMTP id a9-v6mr5178639pgt.51.1528463005537; Fri, 08 Jun 2018 06:03:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528463005; cv=none; d=google.com; s=arc-20160816; b=vIJoQoz4+xW3ivUmZa4CbTfhwSlGoXJMr4psbLhlRxyxyZDVS3KIWxHN3rsuLHimX3 +rhV0DyCLW5pAlt87uOXwS9Yub5PRlwK+A7P7PkZ99x7OoD2abZtesX30S9BmhKZFRZG xoSnRXwuumE8F7Z72PIl8pt99q0DwK1pIi+dQ/MXjecacl9eOBIhMUQJ6Ftz9q6TM9/s 12+JrjRpS+lZxseP+Ly2rSuCDLzMU3GcT4V9FuCQDKu5EM6VdjEJefBPTO/lASHXwIYu 3bzRykt1qwylfQUucqJ+23/oCsswTd+D9PM995aT1troksayEwccHR8YAdDNGDC3Y+NS G6dA== 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:arc-authentication-results; bh=uTSb9cByM8YYk/fN/4PH+wGvVztNDaXvvav89susguk=; b=T+MpwkO94AyDLh4N4qJOVY6uWfRzhyrmY73bslecrPrxrgMHWZx2pBNqBNplieruTu GJnznBJ/Y8mLiiPZ3brydvqKYkFyTHLyojgmi0aNYCYV3b1ksyT8rOVuIDrhNv5m7RkT SoGS3umDLC8oVoa0q3/NIUX3W75Z4B0tD7y4c7EP65TG+j3m8ScU/IxGQDeNcsP02EzX f30nJHr/sct3TPdN5/yCxwIXG09FCG3Yx0q2RmIb2rxbkzzzSJGOZT0+0+nsgM387sfk FuteoN516uqnrSBRPV0thKVYGjDoZrYRco3Kca5NVpY/opX9mg44DdrcFkNKLrtRgBUh bMSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=b/ncoeyY; 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 j77-v6si16323775pfa.57.2018.06.08.06.03.09; Fri, 08 Jun 2018 06:03:25 -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=b/ncoeyY; 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 S1752697AbeFHNBY (ORCPT + 99 others); Fri, 8 Jun 2018 09:01:24 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:39201 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751121AbeFHNBX (ORCPT ); Fri, 8 Jun 2018 09:01:23 -0400 Received: by mail-wm0-f65.google.com with SMTP id p11-v6so3572295wmc.4 for ; Fri, 08 Jun 2018 06:01:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=uTSb9cByM8YYk/fN/4PH+wGvVztNDaXvvav89susguk=; b=b/ncoeyY1W7JWbJvFa07mM/eStfNaXlNVCNj0fryp6fl/KSGDKoxP+Le5F8jj1Zrol IR9qhRjvpfrcJP9wslttoGFz2PTrrmmtzKnKDx36TUOLH6v5XynirTfVunNiGg9ygZwV jwMQpPBQmkazTm15ilWVCLlKkkuf0AnRtfCawI+QqVX1pAQQIhjBH6eYVOMPwR+DJ1RZ r3lxnD6gSH9sXDDzOsFuJBU6OVq77FdOU1XRKh7zjBCANkLZtbHxaPWS36Log4MEOpi0 s7/gYJHJy0YTRzS56ZMhNPCJOtIOc5Bbc52HrfI0kTKHXIvrKLf7TMwaWgoyryTwAGFW Lczg== 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:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=uTSb9cByM8YYk/fN/4PH+wGvVztNDaXvvav89susguk=; b=iyWmsq5UYmfy2cw1WWjg13nsuchsGKYLFZnlZz/Lbj4CdmIvlg5LAWVSbKhAPZI3fM 9YdHNMq/Lqn6R/PtC679IgJzNhECk5c26uwty50ObP/sHRWDSUzChD/1hnjg5NVswTwH yzaWz9WFyK0oDTO2+6jD0rN45hNwgg0gJMXNbzr8+gQ40pBYr6PpYoKRndMKEtN3bPX1 lcPGHARYN/p8mUdszhxE1gNJuTA4w89SrwggZO3HVYr08S0wuCEN9ltufB8tvh5ooWez U3koIPl09t5uF3ci8CBPWRHOXrpUnqiN6TDGr4+7gSPRMj9Owo/p/8VECTlysLKK1JiI 00cw== X-Gm-Message-State: APt69E3wD8fpKgxrzFmEMcszruxtOD2nDMbr+ZL590mfRd54j4kxMKoJ kPFDCzoBiTRR0p4kg1k0kXA= X-Received: by 2002:a1c:64d7:: with SMTP id y206-v6mr1504731wmb.43.1528462882003; Fri, 08 Jun 2018 06:01:22 -0700 (PDT) Received: from linux-08lc (host86-190-130-185.range86-190.btcentralplus.com. [86.190.130.185]) by smtp.gmail.com with ESMTPSA id u108-v6sm77862841wrc.40.2018.06.08.06.01.20 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 08 Jun 2018 06:01:20 -0700 (PDT) Date: Fri, 8 Jun 2018 14:01:29 +0100 From: John Whitmore To: Dan Carpenter Cc: John Whitmore , linux-kernel@vger.kernel.org, kstewart@linuxfoundation.org, devel@driverdev.osuosl.org, gregkh@linuxfoundation.org, colin.king@canonical.com, tglx@linutronix.de Subject: Re: [PATCH v6 8/8] staging: rtl8192e: remove unnecessary parentheses - Coding Style Message-ID: <20180608130127.koojqozbasmef2gd@linux-08lc> References: <20180606114003.22654-1-johnfwhitmore@gmail.com> <20180606114003.22654-9-johnfwhitmore@gmail.com> <20180608121851.o7m3iihg2ibbgmxh@mwanda> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180608121851.o7m3iihg2ibbgmxh@mwanda> User-Agent: NeoMutt/20170912 (1.9.0) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 08, 2018 at 03:18:51PM +0300, Dan Carpenter wrote: > On Wed, Jun 06, 2018 at 12:40:03PM +0100, John Whitmore wrote: > > @@ -1072,10 +1072,10 @@ void HTInitializeHTInfo(struct ieee80211_device *ieee) > > pHTInfo->CurrentAMPDUFactor = pHTInfo->AMPDU_Factor; > > > > // Initialize all of the parameters related to 11n > > - memset((void *)(&(pHTInfo->SelfHTCap)), 0, sizeof(pHTInfo->SelfHTCap)); > > - memset((void *)(&(pHTInfo->SelfHTInfo)), 0, sizeof(pHTInfo->SelfHTInfo)); > > - memset((void *)(&(pHTInfo->PeerHTCapBuf)), 0, sizeof(pHTInfo->PeerHTCapBuf)); > > - memset((void *)(&(pHTInfo->PeerHTInfoBuf)), 0, sizeof(pHTInfo->PeerHTInfoBuf)); > > + memset((void *)(&pHTInfo->SelfHTCap), 0, sizeof(pHTInfo->SelfHTCap)); > > + memset((void *)(&pHTInfo->SelfHTInfo), 0, sizeof(pHTInfo->SelfHTInfo)); > > + memset((void *)(&pHTInfo->PeerHTCapBuf), 0, sizeof(pHTInfo->PeerHTCapBuf)); > > + memset((void *)(&pHTInfo->PeerHTInfoBuf), 0, sizeof(pHTInfo->PeerHTInfoBuf)); > > You should write these like so: > > memset(&pHTInfo->PeerHTInfoBuf, 0, sizeof(pHTInfo->PeerHTInfoBuf)); > > The first 7 patches look fine, but can you resend this last one? > > regards, > dan carpenter > I can certainly try. I've bumped it to v7 so here goes... John