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 0177AB67F for ; Sun, 29 Oct 2023 16:00:06 +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="cv9Pj8II" 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=fjcsmj0OflizPpd6Ufs+ayIf2KVN6RBFaJBOe2J1yts=; b=cv9Pj8IIQaGs0E6dH+57inGuj1yI2Z3tSNss4sLdCCRqrHbLBWfcSCy1 aCyhtzaXxxeg7zofnYzU7RfjX3LcE2/Wz60fSGuriDFtyGf1tMqT5bfXf piQ1kJudg6xksxybXbVrOKKeVxQwPJe83UP46UtzaIM+syRJTaPS3vUxI Q=; 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="70054437" 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 17:00:05 +0100 Date: Sun, 29 Oct 2023 17:00:04 +0100 (CET) From: Julia Lawall X-X-Sender: jll@hadrien To: Dorine Tipo cc: outreachy@lists.linux.dev, gregkh@linuxfoundation.org Subject: Re: [PATCH] Subject: staging: octeon: remove unnecessary parentheses in interface checks In-Reply-To: <20231029154253.6846-1-dorine.a.tipo@gmail.com> Message-ID: References: <20231029154253.6846-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 This is starting to look better, but there is still an extra occurrence of "Subject:" above. The subject line also probebly contains too much information. "in interface checks" seems like a detail. From seeing the subject line only, probably no one will know what is being referred to. But when looking at the patch, it is completely obvious. On Sun, 29 Oct 2023, Dorine Tipo wrote: > The unnecessary parentheses around 'interface < 2' have been removed. It would be helpful to explain why the parentheses are unnecessary. This part of the message should also describe what has been done using the imperative. > Signed-off-by: Dorine Tipo The signed off by looks good now. julia > --- > 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 > >