Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3D59933C7 for ; Sun, 29 Oct 2023 15:24:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=inria.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=inria.fr Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=inria.fr header.i=@inria.fr header.b="D8dCwCaq" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=ceK/kPsiZuAcRvsaPBacyDlG81VAUIbgfCesy187tGo=; b=D8dCwCaqi88WkH6FsufZsRFAX6y6ucx4zcx6PMlytXrFv5yyveJsLWE8 TNkcLAGoUf3XIPUIuSlnxANl0uc9x83Ixn2mbYdmLVeGQTjfU57B3oDt7 B7eFUQyGaX2EGIvIDUJdeMkeT/EvixxkpI1YD5s9L+R+9WEOzoWModM0O U=; Authentication-Results: mail3-relais-sop.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=julia.lawall@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="6.03,261,1694728800"; d="scan'208";a="70052672" Received: from 231.85.89.92.rev.sfr.net (HELO hadrien) ([92.89.85.231]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Oct 2023 16:24:03 +0100 Date: Sun, 29 Oct 2023 16:24:01 +0100 (CET) From: Julia Lawall X-X-Sender: jll@hadrien To: Dorine Tipo cc: outreachy@lists.linux.dev, julia.lawall@inria.fr Subject: Re: [PATCH v2] Subject: [PATCH]Fix unnecessary parentheses in drivers/staging/octeon/ethernet.c In-Reply-To: <20231029150411.6529-1-dorine.a.tipo@gmail.com> Message-ID: References: <20231029150411.6529-1-dorine.a.tipo@gmail.com> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) Precedence: bulk X-Mailing-List: outreachy@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII The subject line is quite messy. "Subject: [PATCH]" should be dropped. There is noneed to put the full name of the affected file in the subject line. On the other hand, you should put a brief description of the affected subsystem. Look at the section "Following the Driver commit style" in the first patch tutorial. On Sun, 29 Oct 2023, Dorine Tipo wrote: > The commit addresses the unnecessary style issue reported by checkpatc This log message gives almost no information. What are you doing and why. checkpatc -> checkpatch julia > Signed-off-by: Dorine Tipo > --- > drivers/staging/octeon/ethernet.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/staging/octeon/ethernet.c b/drivers/staging/octeon/ethernet.c > index 8e1f4b987a25..349308edbc9e 100644 > --- a/drivers/staging/octeon/ethernet.c > +++ b/drivers/staging/octeon/ethernet.c > @@ -248,7 +248,7 @@ static int cvm_oct_common_change_mtu(struct net_device *dev, int new_mtu) > > dev->mtu = new_mtu; > > - if ((interface < 2) && > + if (interface < 2 && > (cvmx_helper_interface_get_mode(interface) != > CVMX_HELPER_INTERFACE_MODE_SPI)) { > int index = INDEX(priv->port); > @@ -294,7 +294,7 @@ static void cvm_oct_common_set_multicast_list(struct net_device *dev) > struct octeon_ethernet *priv = netdev_priv(dev); > int interface = INTERFACE(priv->port); > > - if ((interface < 2) && > + if (interface < 2 && > (cvmx_helper_interface_get_mode(interface) != > CVMX_HELPER_INTERFACE_MODE_SPI)) { > union cvmx_gmxx_rxx_adr_ctl control; > @@ -346,7 +346,7 @@ static int cvm_oct_set_mac_filter(struct net_device *dev) > union cvmx_gmxx_prtx_cfg gmx_cfg; > int interface = INTERFACE(priv->port); > > - if ((interface < 2) && > + if (interface < 2 && > (cvmx_helper_interface_get_mode(interface) != > CVMX_HELPER_INTERFACE_MODE_SPI)) { > int i; > -- > 2.25.1 > >