Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3529934imw; Mon, 18 Jul 2022 09:40:58 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sm67t3VOXhvzr+meZDQ+g9Xd+x9F/UTR71DHbNIhHOu0023bCdQatkBATS3dnk9/BX8hQZ X-Received: by 2002:a17:907:60c6:b0:72f:4645:ead3 with SMTP id hv6-20020a17090760c600b0072f4645ead3mr1915240ejc.321.1658162458192; Mon, 18 Jul 2022 09:40:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658162458; cv=none; d=google.com; s=arc-20160816; b=m4xTVu9mKRTuwQi0RGg5UM7M77DanCw+aQLjVgv6Z1Y7vVpYCNwaD6NNiQNUZ4KQrb V86vM69n3wgA/xXVqS1V+cUWVQrGeVr084EgvC4ywPvdu0rDZxpNXxwByUCFSbHKnh2D 1nGMnRro4KrQUcAIEM//1ILHFAAheLrQgoYGrJ0LqAsNc6DaXv6jodVPUHtjeG4T/JDU 6krOdCMMIwKnM7CitPuXmBDrd0ep+hnuBt5W34zopPWIgcb/e/Ups+uFnCumn7umn2gT u8BGIcLhnBLy5sIVSQxlgGMYqt7L1btoZU7N196papYYBP4Kc2l/hGiEdBEeFx6Rq2Mn NbOg== 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=YqLiP5cIyVnOEKUPeJzhFVfIN2stFnzb4s8h4jxIDmQ=; b=0lMxGZbAaFHPKSvGkOABUMhRg+H/dm4UhFprQnUVOnZvmebl5LK08XVEgVBbzcEi9s ndLPXb5jTej5+VnHEc/oS6xRF4zijQDGhAcWHe4ZOyGU3eEVGOUtWEv+9K9JearpS2qC KmFkxLNL8xCxryJ75lKjfakiiZQ/iALPZTIr6hbJ4uKR5JeRDOZstGMfHjr2sGiUTa01 w3NqAgBQjTEzGeWTUTRqOnHmxLcYKWOBpn0FNhXjkrXBJyRd8RTgLg0lXzjNMkg449E9 PEOm9cjK6nc5Ec2MXBCki5b4iCPDV7ERFBB+YZubge/x0mLbIR2zn+LR9mUyqLmxAgas Ezyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Hs7smEnD; 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 n11-20020a056402060b00b0043ad5b0e08esi14508749edv.246.2022.07.18.09.40.33; Mon, 18 Jul 2022 09:40:58 -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=Hs7smEnD; 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 S234024AbiGRQex (ORCPT + 99 others); Mon, 18 Jul 2022 12:34:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230491AbiGRQeq (ORCPT ); Mon, 18 Jul 2022 12:34:46 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D777B2A960; Mon, 18 Jul 2022 09:34:45 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 6445161461; Mon, 18 Jul 2022 16:34:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 984D6C341CB; Mon, 18 Jul 2022 16:34:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1658162084; bh=JpTUhopLLculR7MFkgoqIIIjOt4EnxA4CtvKPiKeBto=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Hs7smEnD/qRWdtrtfbqJivxCA7Yf3YFMfvFqbueuv6pOd9lXLpZukBY6rAxUz0e8/ 4CjjePqss9CXY58XLWfiJHrpT3/0OiKLeRyZKcNwXjKQNqAWk7SwLl6zD0gjZ+DVtp pOF5M/iu5i48S2h8MgpcCqvvV8ywFzwgaleDdB5AcgYlHeCUKasDwWKRYXDM2DbjOg fsLfiAdq5u/C41MFvGihvB3aHcQEo3aM3FYnPmrA6LBGPQsu7DfRSQ88PYyhdg6kRJ 3veL9AI58qFb23ahLZ4fYPdRw5JMnZlKQQvYmonTTiQen5eqPjNscuOurbmQSRajqZ gdHdBisIMOP1g== Date: Mon, 18 Jul 2022 17:44:41 +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: Be consistent with allocation result tests. Message-ID: <20220718174441.7967830c@jic23-huawei> In-Reply-To: <20220718020348.32047-1-joetalbott@gmail.com> References: <20220718020348.32047-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.8 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 22:03:48 -0400 Joe Simmons-Talbott wrote: > Make both allocation result tests use the same format > > if (!ptr) > > Signed-off-by: Joe Simmons-Talbott If you post two patches to the list that will cause each other to not apply, please base one on top of the other and say so in the patch description. Anyhow, fixed up and applied by hand. Thanks, Jonathan > --- > 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);