Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp1416458ybp; Wed, 9 Oct 2019 13:51:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqxH6upwGSXCrXem+TX2joqeq9ktg2BQF+IqETAWNcs/7Q72Yv1Jh2LNgltzX6PxeuALPndZ X-Received: by 2002:a50:f152:: with SMTP id z18mr4766265edl.263.1570654278315; Wed, 09 Oct 2019 13:51:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570654278; cv=none; d=google.com; s=arc-20160816; b=gSEzHsJFTP6WedNEEHAHwvNa1fWvLL1FVIk6X9Off5VxlVcNwgIZaDbMrermXGw/QR bq9HqIe+y7p0wLmlwI2dG00AnV/63li+S5y6F5YoGgnHQGxCDmsocl6jbayqGOnyU7pb sjGn22VUcq4rs9w+yXfyZzcIDkym+fl5JNr6PShkpz617qshBFmpmLe2InMA0jv+ifyR UmhD6FIkR3d7DvktR8/T9KFfeMz+9IVyb4GkNGK4k2ZC7fODRcLIFQaGn8qYEQydrvFh Ea/hgzT93PHlGOvtSRw9XmvWWd2i3T891rBfFW8VPukK1Ov3jTGFyaIpf5Xek7M0detM +pzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=Cc3TbQJlqICM+4Zri4TWuERo0fWUiJeUGKIYX5p8gBg=; b=Tod/Iis/iQHt2XxxxJ4pVtGiqUIw6IK7rI5IGPknHA03E3Z8R7xUvO418rs7uY4W+q SKfTz+HKfJpEzrvFxN5viYKPiFgAU6qPLryomyuXcFspFSrJ/DBiFgYe1NaJatml75TV 09MLPjwdirvJwWFI+0a3eKUT+5pk110h60qcPK4ojlqTJ8YFDMWkjvx+uSh956NSOTWs kRZiYkJsNnxGXrbdchC2dkcSo0TT3CVwoVAo/X4Jbx+es6+YYa0jDG0/v8hffShoZTjg ocA9ZfGjuQiSinBcYQws4RqHYhgpSYt/OgT2/MLo4rW657VfmWcMXrnVQ9ireMgIu0e/ Ooow== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k1si1961783ede.255.2019.10.09.13.50.54; Wed, 09 Oct 2019 13:51: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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731763AbfJIUsq (ORCPT + 99 others); Wed, 9 Oct 2019 16:48:46 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:35815 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728804AbfJIUsq (ORCPT ); Wed, 9 Oct 2019 16:48:46 -0400 X-IronPort-AV: E=Sophos;i="5.67,277,1566856800"; d="scan'208";a="405491148" Received: from 81-65-53-202.rev.numericable.fr (HELO hadrien) ([81.65.53.202]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Oct 2019 22:48:44 +0200 Date: Wed, 9 Oct 2019 22:48:43 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: Jules Irenge cc: outreachy-kernel@googlegroups.com, gregkh@linuxfoundation.org, GR-Linux-NIC-Dev@marvell.com, netdev@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [Outreachy kernel] [PATCH] staging: qlge: Fix multiple assignments warning by splitting the assignement into two each In-Reply-To: <20191009204311.7988-1-jbi.octave@gmail.com> Message-ID: References: <20191009204311.7988-1-jbi.octave@gmail.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 9 Oct 2019, Jules Irenge wrote: > Fix multiple assignments warning " check > issued by checkpatch.pl tool: > "CHECK: multiple assignments should be avoided". > > Signed-off-by: Jules Irenge > --- > drivers/staging/qlge/qlge_dbg.c | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/drivers/staging/qlge/qlge_dbg.c b/drivers/staging/qlge/qlge_dbg.c > index 086f067fd899..69bd4710c5ec 100644 > --- a/drivers/staging/qlge/qlge_dbg.c > +++ b/drivers/staging/qlge/qlge_dbg.c > @@ -141,8 +141,10 @@ static int ql_get_serdes_regs(struct ql_adapter *qdev, > u32 *direct_ptr, temp; > u32 *indirect_ptr; > > - xfi_direct_valid = xfi_indirect_valid = 0; > - xaui_direct_valid = xaui_indirect_valid = 1; > + xfi_indirect_valid = 0; > + xfi_direct_valid = xfi_indirect_valid; > + xaui_indirect_valid = 1; > + xaui_direct_valid = xaui_indirect_valid Despite checkpatch, I think that the original code was easier to understand. julia > > /* The XAUI needs to be read out per port */ > status = ql_read_other_func_serdes_reg(qdev, > -- > 2.21.0 > > -- > You received this message because you are subscribed to the Google Groups "outreachy-kernel" group. > To unsubscribe from this group and stop receiving emails from it, send an email to outreachy-kernel+unsubscribe@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20191009204311.7988-1-jbi.octave%40gmail.com. >