Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2438757imw; Sun, 17 Jul 2022 08:49:50 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vAYev8+jspnjyNV8gxCAO2S7ryNuWS/lIPQG8hsEmZaNOGI2DZdJ62Ta/eA2HThgelv7ee X-Received: by 2002:a05:6a00:16c7:b0:520:6ede:2539 with SMTP id l7-20020a056a0016c700b005206ede2539mr23802809pfc.46.1658072990060; Sun, 17 Jul 2022 08:49:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658072990; cv=none; d=google.com; s=arc-20160816; b=OAYEWJqWo3XbO7ws8e2libeMmaz6iSqw9wrajANiC1nkSU7ExRk4qhJZOEbfBb3glI jIb4LIpdhL1Rxlhy8V0DfFvaq2vyUilF6/fy6mGcZzJdPgr550oS+T6BefnluciqZHt5 KRo5mUfxOXgUXEODsk9wo4mKBz0/yOTtuQ/YI3kY6UBjUUYaecuskEoQGmOKZujYbky3 Ps+lkFI4zB85JOfj45k6hPQGCHZj+rT5Yi6qtyPPGIJhBLvHt4Nc38msDjL+JY3npPzK pt0Onwk+PUVecE2mQhjLT3TAzXRDfZ+myC5sUzwdcqMav0WURCpSNTW/U8R/gOeGeG37 7fgA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=p7+cg2LOJ1jjwaLPnm5wodKq+ffhY0uO8A/jZtHxwtA=; b=wVZyLBREFvjX/N4adbAHsAPqch/7il4XiTUMPpibZ/ImEbfXLHiFhy0MJVEvXc3QAJ aKzL5Vut4SfLjuIHRcrpJKmS3STmYMVoojCQ4GJ+CatxnUxV2ZJZpUWBSEHUKsiTlBun u4DNTCWw+idGhgDBD9A5S8JkUxTlszYy3qZiknOCyyCaDmunrm1EJ4D73ykIbHPf7Pbu 24e44UyWApuLJFZvsEZCiveM3ABb6mvivgGH92L0VKPjYT8Ng9aO/L1YMZiCx4AMD9aT PWoDrrUdHr4BV535aCCeMCdNoMfeFChKp5Dpot9vOplTOSFfuGNCbwP0y+Fj8qKirkx0 zNOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=XW0KM7LR; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d186-20020a6368c3000000b0041212cbc60bsi4092591pgc.373.2022.07.17.08.49.34; Sun, 17 Jul 2022 08:49:50 -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=@gmail.com header.s=20210112 header.b=XW0KM7LR; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231386AbiGQPfF (ORCPT + 99 others); Sun, 17 Jul 2022 11:35:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229993AbiGQPfD (ORCPT ); Sun, 17 Jul 2022 11:35:03 -0400 Received: from mail-qk1-x72e.google.com (mail-qk1-x72e.google.com [IPv6:2607:f8b0:4864:20::72e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2106E13E88; Sun, 17 Jul 2022 08:35:02 -0700 (PDT) Received: by mail-qk1-x72e.google.com with SMTP id m16so2881816qka.12; Sun, 17 Jul 2022 08:35:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=p7+cg2LOJ1jjwaLPnm5wodKq+ffhY0uO8A/jZtHxwtA=; b=XW0KM7LR2T1Y//unaBu3Ul/2TzTRQWzx6EBVJ9QTIO0vo/uybtLneAJNUgX9mKOgaT ot1DUb/SEdJPxaNsXaLykoYJhsBG5zrqDCIUVCaSxwh/OTA4+svu92V9W87mt9kS+6+j Qn1UuoYVoMGR1AG7e1tJUly1xFMFR5aTXX7IaMR2qe4kB5UO0397aNolUPu3BKju5E6m 7oN+xOrXG0RwK2auPBMYNEteO3kh9/OH4I8p/Ik6KYve6u8XG70X7FR9uoXw2YQCat+l Xs4PmX4KhcczaDbMiVSH+bzYF5c6rjT9JrtP8/idLVZzJfMppLOPpGNJAMnUfnOEjGql 2PCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=p7+cg2LOJ1jjwaLPnm5wodKq+ffhY0uO8A/jZtHxwtA=; b=E4ZywFEHSwXdp8mqEhMUr/74BEeCkMm3xqNm1Dsb7pOHOAc/9w7jgT4xm4CqbVXPVz WXdo2h12dzXvrR1l6Gjvks2QzDxxpZj68K77EZ3DryvGsHl4KDy9xn7AdZMTkzK6N6k3 27aSBK+Ji2vC2vjiTVRlrf0/agzIn2lqZvcjw/4Dh4OH+urkfwfHQo8I1/fWYnv81vpf VhASBAGUgx6UpTrQ1OHx8YVeZircslOICZkIX0IGvm25RVzv9K5iB72EzseluwpXsYw9 QjRzNmaKIkF7fdDhnDOnDFsNzYdhchs+ivwBj38q4xCVRuptgbriP7cCgIHIhlaYA5dV wAew== X-Gm-Message-State: AJIora8UjYpO5Fvcs53TRji+BtKuNql2r00SAyYD3wyRGb2bHpHJVx17 U/UFJ/M94XkRl7JHJ4E7l/VQwosao7o= X-Received: by 2002:a05:620a:c43:b0:6a9:77ef:e000 with SMTP id u3-20020a05620a0c4300b006a977efe000mr15387110qki.396.1658072100849; Sun, 17 Jul 2022 08:35:00 -0700 (PDT) Received: from spruce.. (c-71-206-142-238.hsd1.va.comcast.net. [71.206.142.238]) by smtp.gmail.com with ESMTPSA id ez12-20020a05622a4c8c00b0031eb0bb5c3csm7708016qtb.28.2022.07.17.08.34.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Jul 2022 08:35:00 -0700 (PDT) From: Joe Simmons-Talbott To: Jonathan Cameron , Lars-Peter Clausen , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Joe Simmons-Talbott Subject: [PATCH] iio: Use parens with sizeof Date: Sun, 17 Jul 2022 11:34:38 -0400 Message-Id: <20220717153438.10800-1-joetalbott@gmail.com> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 Prefer 'sizeof(var)' over 'sizeof var' as reported by checkpatch.pl. Signed-off-by: Joe Simmons-Talbott --- 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; -- 2.35.3