Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp1372458imn; Sun, 31 Jul 2022 04:37:52 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tGv7AhnvP75mbZZ5RyN1saifOVP6v3X2CY++fTfUbWLzJjGfqVXYBg/Yy/06RsQe4K9Gn6 X-Received: by 2002:a17:907:2c6b:b0:72b:2eb9:6673 with SMTP id ib11-20020a1709072c6b00b0072b2eb96673mr9060665ejc.71.1659267472671; Sun, 31 Jul 2022 04:37:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659267472; cv=none; d=google.com; s=arc-20160816; b=ghuSrAdbwyaiFZ2oFsqv9JY6QbzTNd1PrOBXkHKp8vph3QAplSQuV6Hf2f60j3csV5 IEvcjYpAMj9FuezHoGpHEAjUMzSjQChjrUQZw9+DT3GrbqK9+UwHgih2+jQow5zx4G1x WWPtXRxwpZWLbMdk6jD7XCEAnb4Hr85CvVI89QijffHoAbCvKftxeohiObML0bHswcxs HUBAZpYhYNxFOGFvKZZkLPf0+6Gu4s7lnXnG/iJu+yXAHMY+g41Vu6nOmP/QTYSdL0Jr 4Xg5XZ4X20WcK6nZ5fVxk6/+xKdZC6T4y/amiAd7gmKhTwA2m4nX9rZ2Q5mDuiajZxDc m6Dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=o6oAtPpStPg906QLdCfm9bjhQkxK+jK3NeviRAj8iHI=; b=Qaj2rne6JOauxIatFSgxn6BCn8xvT1EfR4DniD1rYfdmanIcZd9DedZ8IDCMzAqjJi nrJJylG5ANjfMei3PFsS8+XHtvb6w9eqIP3OsfvHTfnb8pZ1CeowVB1kgGl3TizY6Hlw dSr+YQLKF4GG5T5Q3Vlfv/sZ0PMc6lQDysZO0orfhlo6mPDXMtknoq8irKIiiSJ9iWKp RscD7rIUZqGDdHsSAroCYGp/bJJ8cGsRIwowNEM6BTrTHOF6tTImy5on19NdkfUg7B7e bBUM/XY0yPzs/A4zoNzoFod3a/qP96KQMwbFS9L6Agd/KoG8vIgpxzXGpmkwN14JHc0d cZ5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="lzL//zYo"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b12-20020a056402350c00b0043d14d0446fsi6757025edd.629.2022.07.31.04.37.22; Sun, 31 Jul 2022 04:37:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="lzL//zYo"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233109AbiGaLUd (ORCPT + 99 others); Sun, 31 Jul 2022 07:20:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232378AbiGaLUb (ORCPT ); Sun, 31 Jul 2022 07:20:31 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0B7D6428; Sun, 31 Jul 2022 04:20:29 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id AE122B80D1D; Sun, 31 Jul 2022 11:20:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0B511C433D6; Sun, 31 Jul 2022 11:20:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1659266427; bh=K8XMnjLrVWD4hf/TSjDR6ccL8BtOsnjvFMSZEJF/67Y=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=lzL//zYodUHTGytXfvrpXUiDMZwS+emJlOHZ4IOBNn+zzSEpUy72POGAFWXIPXvgF wGTNtID6YSbV4AW9KfkTx6Qs444rLO3VjwWoA9X0140p8P0bLVTiRl2iOiAqWtbJoG cO3M9fApNzmD7qJKBpyQBF1gVT1SQuvJOwY0FQONvyi390ZzXEHaJ/KilrYpdrc0Zf 71HKqsYDKClaaK5kakwGNzKl3RmB3yIPDRbFkBJOoWF0/64CmN8dlf2kNYAGdMC15Y N1AALLfxbOgc/UHEP1ajEu+FZA7HkqoMSqOvzab+LpQUPzsZ716MKNIjUeYNiMJxLq JP1Dno34aCuGg== Date: Sun, 31 Jul 2022 12:30:39 +0100 From: Jonathan Cameron To: Joe Simmons-Talbott Cc: Lars-Peter Clausen , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] iio: Use parens with sizeof Message-ID: <20220731123039.600347b0@jic23-huawei> In-Reply-To: <20220717153438.10800-1-joetalbott@gmail.com> References: <20220717153438.10800-1-joetalbott@gmail.com> X-Mailer: Claws Mail 4.1.0 (GTK 3.24.34; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 17 Jul 2022 11:34:38 -0400 Joe Simmons-Talbott wrote: > Prefer 'sizeof(var)' over 'sizeof var' as reported by checkpatch.pl. > > Signed-off-by: Joe Simmons-Talbott Applied to the togreg branch of iio.git and pushed out as testing to let 0-day take a poke at it. oops. Email got stuck in my outbox when I went away for a week. Thanks, Jonathan > --- > drivers/iio/industrialio-trigger.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/iio/industrialio-trigger.c b/drivers/iio/industrialio-trigger.c > index f504ed351b3e..88bccb0676c8 100644 > --- a/drivers/iio/industrialio-trigger.c > +++ b/drivers/iio/industrialio-trigger.c > @@ -368,7 +368,7 @@ struct iio_poll_func > va_list vargs; > struct iio_poll_func *pf; > > - pf = kmalloc(sizeof *pf, GFP_KERNEL); > + pf = kmalloc(sizeof(*pf), GFP_KERNEL); > if (pf == NULL) > return NULL; > va_start(vargs, fmt); > @@ -560,7 +560,7 @@ struct iio_trigger *viio_trigger_alloc(struct device *parent, > struct iio_trigger *trig; > int i; > > - trig = kzalloc(sizeof *trig, GFP_KERNEL); > + trig = kzalloc(sizeof(*trig), GFP_KERNEL); > if (!trig) > return NULL; >