Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2857391imw; Sun, 17 Jul 2022 19:06:53 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sYNrVZftlJ2UaFzNKXK4wCQvUjJxm5vWIn7DurTHYuDQdp+ZSLcu3nhukmI6IgCpa+mFhf X-Received: by 2002:a63:6c06:0:b0:419:ab8e:e177 with SMTP id h6-20020a636c06000000b00419ab8ee177mr18797008pgc.188.1658110013125; Sun, 17 Jul 2022 19:06:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658110013; cv=none; d=google.com; s=arc-20160816; b=zfvf7Tvn5CnExEZ48UWKFe1PGHzW1ALyaPHduCMhpmZEZwCHe1XbnkvYMBXPWByiPD +LFp7oJorgy5yNlAxCLVPL8jOMni7PyRfOKes69WzkZjGJf62NCeZtrkR5e4gVACGT1u kAUTGtu1sjjz5cMZSlCHrKb1f5r6FLINvKywpwNJ6awP/ZSgN7lxDekKKZxsmJwdIY/S 74tLdjkMDHxEikSIvKJLuhnwPCTbagdXCpUzHfB+U6+avvhHCN2BpQRLC2QuRqHUpbdG 9VFcemfhBq+3kjtVht61ahWUIfCbbuALqg3is8UWvxw5wTu0PEpIFeshha7Qy0g+EXwR k8og== 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=W8HeezhA1+rURqP/2dwk+dtvymWGPZT82fuwhTRWBAk=; b=sYEL297Ti/g0QInbWSaEu9HV8UPu9k9a+TOqwhHDznyMl/B5E1rkzJIiCUstKJUyRL ekAsqYTUFh8FXTcVhOyu+6ZhSIZmpmzipJLaK6SkpUBvdc9fS5aBPxDOgD5/N/1kCoW8 pfu9Jizb18B247zE4OIrndioKp7wq5OVyJL/wlrxRoeWjhNgQWj+ste/1JU9cqSBTVtO odFfw1uMHGdf+csf2HEEpVWzNbErmLIfFUOzfDqwkntEcwwRase2cCFJj8r1sqFRmwEs +3+bux2GK/FHUnV2iaGtQ13FPf4M3GRsnx0oYOROCvhOeDnRDDX8zjoEC2+u0qUm2TAb 33sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=iI3Y9js0; 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 s22-20020a632c16000000b00408c2891a4fsi9603022pgs.710.2022.07.17.19.06.38; Sun, 17 Jul 2022 19:06:53 -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=iI3Y9js0; 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 S231939AbiGRCEB (ORCPT + 99 others); Sun, 17 Jul 2022 22:04:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231429AbiGRCD7 (ORCPT ); Sun, 17 Jul 2022 22:03:59 -0400 Received: from mail-qv1-xf2d.google.com (mail-qv1-xf2d.google.com [IPv6:2607:f8b0:4864:20::f2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 832FABC00; Sun, 17 Jul 2022 19:03:56 -0700 (PDT) Received: by mail-qv1-xf2d.google.com with SMTP id g9so7868222qvq.7; Sun, 17 Jul 2022 19:03:56 -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=W8HeezhA1+rURqP/2dwk+dtvymWGPZT82fuwhTRWBAk=; b=iI3Y9js01TFWu/vyEqnMLoMM07XRrNvcoLpLrW4c6Iu1RGYegIy1DgPGycZHSFK0Md hCmDaFndLX4Wzzkj4CHd+VQGpNQnojtedq+qbMq7KzIbkOtwAtQAhPrOkfn8mXUsCJc1 pW0au86f/9CTJK+0K0t7/2huwTwr2zNfq6qKhbQY46NO7vuH3s4xR0zzFeZoKJPPzF3E mwYUQGH1CaFCSHKGmWJNQqMEqtPCsstRvOQAlebS7DAihjZVlL9rOcolvL6mU42lokDb im1AWWMuG1hbVC0FGJz2HU2tUQdLr+1LhL4fGwF0pBntc6cevCB4Odj2s/kQdWJovuo5 8eDQ== 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=W8HeezhA1+rURqP/2dwk+dtvymWGPZT82fuwhTRWBAk=; b=NZJWoULkd4anEhPMjijcc2EgKM7soYhKkJ9TLRHg0Rr/9K4rrK6fKvGVYkeYzjC/au N0UQqyA1x4ex96nv8C0JmeT6cqFLq8zntipw3M4PNVQAW4JYhChFVChgj2l1dbS8XeCP Dbk4y10tJDIZGdVujH8icWkk7JRnRZrjYynXAPcP6cc4pNOZQvqPlqQCZco+mLhVy1Uq CN95gmVUIoEazSBWfXJyVCFGnID2flLmdYv78SY0TRSfIUhE5eGroPz9Fe79839beYGi V05Ixl3Q16HxvT01UMZBIyOdMNQF2LWeu4ac+ZzRoa33sbiH6dW2lrp+ae3OC4cDxqI5 bv4g== X-Gm-Message-State: AJIora8xbAI8rsBHdZiGOlK57eT11sY26rZsnpjTANHW776lZyZRwdCA fjD77yVW6O1orhO1JVyqtNgZk4pQuJo= X-Received: by 2002:a0c:dc87:0:b0:473:84e6:b988 with SMTP id n7-20020a0cdc87000000b0047384e6b988mr19595552qvk.74.1658109835605; Sun, 17 Jul 2022 19:03:55 -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 bz19-20020a05622a1e9300b0031e99798d70sm1668747qtb.29.2022.07.17.19.03.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Jul 2022 19:03:55 -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: Be consistent with allocation result tests. Date: Sun, 17 Jul 2022 22:03:48 -0400 Message-Id: <20220718020348.32047-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 Make both allocation result tests use the same format if (!ptr) Signed-off-by: Joe Simmons-Talbott --- drivers/iio/industrialio-trigger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/industrialio-trigger.c b/drivers/iio/industrialio-trigger.c index f504ed351b3e..e22c47f20b4d 100644 --- a/drivers/iio/industrialio-trigger.c +++ b/drivers/iio/industrialio-trigger.c @@ -369,7 +369,7 @@ struct iio_poll_func struct iio_poll_func *pf; pf = kmalloc(sizeof *pf, GFP_KERNEL); - if (pf == NULL) + if (!pf) return NULL; va_start(vargs, fmt); pf->name = kvasprintf(GFP_KERNEL, fmt, vargs); -- 2.35.3