X-GM-THRID: 6333834735065759744 X-Received: by 10.25.24.20 with SMTP id o20mr589609lfi.20.1474721741378; Sat, 24 Sep 2016 05:55:41 -0700 (PDT) X-BeenThere: outreachy-kernel@googlegroups.com Received: by 10.28.157.71 with SMTP id g68ls711483wme.16.gmail; Sat, 24 Sep 2016 05:55:40 -0700 (PDT) X-Received: by 10.28.4.200 with SMTP id 191mr393458wme.21.1474721740930; Sat, 24 Sep 2016 05:55:40 -0700 (PDT) Return-Path: Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr. [192.134.164.104]) by gmr-mx.google.com with ESMTPS id p199si74658wmd.1.2016.09.24.05.55.40 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 24 Sep 2016 05:55:40 -0700 (PDT) Received-SPF: neutral (google.com: 192.134.164.104 is neither permitted nor denied by domain of julia.lawall@lip6.fr) client-ip=192.134.164.104; Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 192.134.164.104 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.30,387,1470693600"; d="scan'208";a="194517001" Received: from 198.67.28.109.rev.sfr.net (HELO hadrien.local) ([109.28.67.198]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 24 Sep 2016 14:55:39 +0200 Date: Sat, 24 Sep 2016 14:55:39 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: Namrata A Shettar cc: Jarod Wilson , Mauro Carvalho Chehab , Greg Kroah-Hartman , Amitoj Kaur Chawla , Tapasweni Pathak , Wolfram Sang , Maciek Borzecki , Arnd Bergmann , Shraddha Barke , outreachy-kernel Subject: Re: [Outreachy kernel] [PATCH 3/6] staging: media: lirc: Replace data type with pointer of same type In-Reply-To: <328a70961fc82df3d3444f551bdf1e7ab3fc0985.1474708456.git.namrataashettar@gmail.com> Message-ID: References: <328a70961fc82df3d3444f551bdf1e7ab3fc0985.1474708456.git.namrataashettar@gmail.com> User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII You are also sending the patch to too many people. Not all of the listed people are maintainers of this code. See the arguments suggested to get_maintainers in the Submit a patch section of the tutorial. julia On Sat, 24 Sep 2016, Namrata A Shettar wrote: > Replace data type with pointer of same type in sizeof() to resolve checkpatch issue as both are of same size. > > Signed-off-by: Namrata A Shettar > --- > drivers/staging/media/lirc/lirc_imon.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/staging/media/lirc/lirc_imon.c b/drivers/staging/media/lirc/lirc_imon.c > index b1c28e5..198a805 100644 > --- a/drivers/staging/media/lirc/lirc_imon.c > +++ b/drivers/staging/media/lirc/lirc_imon.c > @@ -702,7 +702,7 @@ static int imon_probe(struct usb_interface *interface, > /* prevent races probing devices w/multiple interfaces */ > mutex_lock(&driver_lock); > > - context = kzalloc(sizeof(struct imon_context), GFP_KERNEL); > + context = kzalloc(sizeof(*context), GFP_KERNEL); > if (!context) > goto driver_unlock; > > @@ -782,11 +782,11 @@ static int imon_probe(struct usb_interface *interface, > __func__, vfd_proto_6p); > } > > - driver = kzalloc(sizeof(struct lirc_driver), GFP_KERNEL); > + driver = kzalloc(sizeof(*driver), GFP_KERNEL); > if (!driver) > goto free_context; > > - rbuf = kmalloc(sizeof(struct lirc_buffer), GFP_KERNEL); > + rbuf = kmalloc(sizeof(*rbuf), GFP_KERNEL); > if (!rbuf) > goto free_driver; > > -- > 2.7.4 > > -- > 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/328a70961fc82df3d3444f551bdf1e7ab3fc0985.1474708456.git.namrataashettar%40gmail.com. > For more options, visit https://groups.google.com/d/optout. >