X-GM-THRID: 6205781635135176704 X-Received: by 10.112.55.69 with SMTP id q5mr1944018lbp.24.1444903558668; Thu, 15 Oct 2015 03:05:58 -0700 (PDT) X-BeenThere: outreachy-kernel@googlegroups.com Received: by 10.181.11.196 with SMTP id ek4ls328127wid.36.gmail; Thu, 15 Oct 2015 03:05:58 -0700 (PDT) X-Received: by 10.180.219.66 with SMTP id pm2mr460463wic.1.1444903558072; Thu, 15 Oct 2015 03:05:58 -0700 (PDT) Return-Path: Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr. [192.134.164.83]) by gmr-mx.google.com with ESMTPS id cm6si32096wib.1.2015.10.15.03.05.58 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Oct 2015 03:05:58 -0700 (PDT) Received-SPF: neutral (google.com: 192.134.164.83 is neither permitted nor denied by domain of julia.lawall@lip6.fr) client-ip=192.134.164.83; Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 192.134.164.83 is neither permitted nor denied by domain of julia.lawall@lip6.fr) smtp.mailfrom=julia.lawall@lip6.fr X-IronPort-AV: E=Sophos;i="5.17,684,1437429600"; d="scan'208";a="182908135" Received: from vaio-julia.rsr.lip6.fr ([132.227.76.33]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 15 Oct 2015 12:05:57 +0200 Date: Thu, 15 Oct 2015 12:05:53 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: Amitoj Kaur Chawla cc: outreachy-kernel Subject: Re: [Outreachy kernel] [PATCH 00/18] staging: Remove useless initialisation In-Reply-To: Message-ID: References: User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Thu, 15 Oct 2015, Amitoj Kaur Chawla wrote: > On Thu, Oct 15, 2015 at 1:35 PM, Julia Lawall wrote: > > On Thu, 15 Oct 2015, Amitoj Kaur Chawla wrote: > > > >> This patchset removes multiple useless intialisations of variables > >> which are immediately reassigned. > > > > The patch is probably fine, but in general, you may find that it is more > > comfortable not to send quite so many patches at once. > > > > julia > > > > Hi Julia, > > Since all the patches were essentially doing the same thing, just in > different files I thought it would be okay to send them all in the > same patchset. But if you think it's better to divide and send I'll do > so in the future? It's just a practical issue. The more patches you send at once, the greater the chance that you will make a mistake. I start to feel uncomfortable beyond 10. Even for things that are not too complicated. But it's just something to keep in mind for the future. No problem with this patch. julia > >> > >> The semantic patch used to find this is: > >> > >> // > >> @@ > >> type T; > >> identifier x; > >> constant C; > >> expression e; > >> @@ > >> > >> T x > >> - = C > >> ; > >> x = e; > >> // > >> > >> > >> Amitoj Kaur Chawla (18): > >> staging: rtl8723au: hal: Remove useless intialisation > >> staging: rtl8723au: core: rtw_wlan_util: Remove useless intialisation > >> staging: rtl8723au: core: rtw_recv: Remove useless initialisation > >> staging: rtl8723au: core: rtw_ap: Remove useless intialisation > >> staging: media: lirc: Remove useless initialisation > >> staging: media: davinci_vpfe: Remove useless intialisation > >> staging: lustre: ptlrpc: Remove useless initialisation > >> staging: skein: Remove useless initialisation > >> staging: vt6655: Remove useless initialisation > >> staging: vt6656: Remove useless initialisation > >> staging: wilc1000: wilc_wfi_cfgoperations: Remove useless > >> initialisation > >> staging: wilc1000: coreconfigurator: Remove useless initialisation > >> staging: rdma: ipath: ipath_eeprom: Remove useless intialisation > >> staging: rdma: ipath: ipath_init_chip: Remove useless initialisation > >> staging: rdma: hfi1: diag: Remove useless initialisation > >> staging: rdma: hfi1: sysfs: Remove useless initialisation > >> staging: dgnc: dgnc_tty: Remove useless initialisation > >> staging: dgnc: dgnc_driver: Remove useless initialisation > >> > >> drivers/staging/dgnc/dgnc_driver.c | 2 +- > >> drivers/staging/dgnc/dgnc_tty.c | 2 +- > >> drivers/staging/lustre/lustre/ptlrpc/client.c | 2 +- > >> drivers/staging/media/davinci_vpfe/vpfe_mc_capture.c | 2 +- > >> drivers/staging/media/lirc/lirc_sasem.c | 2 +- > >> drivers/staging/rdma/hfi1/diag.c | 4 ++-- > >> drivers/staging/rdma/hfi1/sysfs.c | 2 +- > >> drivers/staging/rdma/ipath/ipath_eeprom.c | 2 +- > >> drivers/staging/rdma/ipath/ipath_init_chip.c | 2 +- > >> drivers/staging/rtl8723au/core/rtw_ap.c | 4 ++-- > >> drivers/staging/rtl8723au/core/rtw_recv.c | 6 +++--- > >> drivers/staging/rtl8723au/core/rtw_wlan_util.c | 2 +- > >> drivers/staging/rtl8723au/hal/rtl8723a_bt-coexist.c | 8 ++++---- > >> drivers/staging/skein/skein_api.c | 2 +- > >> drivers/staging/vt6655/card.c | 2 +- > >> drivers/staging/vt6656/card.c | 2 +- > >> drivers/staging/wilc1000/coreconfigurator.c | 10 +++++----- > >> drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 2 +- > >> 18 files changed, 29 insertions(+), 29 deletions(-) > >> > >> -- > >> 1.9.1 > >> > >> -- > >> 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 post to this group, send email to outreachy-kernel@googlegroups.com. > >> To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/cover.1444895817.git.amitoj1606%40gmail.com. > >> For more options, visit https://groups.google.com/d/optout. > >> > > > > -- > Amitoj > > -- > 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 post to this group, send email to outreachy-kernel@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/CA%2B5yK5F%2BaegUFW3UVE1S%2Bj%3D9B28q_0NRQK%3DUHN93pd7jYLP0_A%40mail.gmail.com. > For more options, visit https://groups.google.com/d/optout. >