Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1715222rwd; Fri, 9 Jun 2023 00:44:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6K30HpToSdFotmIOFjnyZWHoeE5k/msu3yKhgby8+Jr0OgTlkiR5DyCTtZPEcrw9kJXZ89 X-Received: by 2002:a05:6a21:9985:b0:10c:3cf3:ef7e with SMTP id ve5-20020a056a21998500b0010c3cf3ef7emr677186pzb.42.1686296643726; Fri, 09 Jun 2023 00:44:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686296643; cv=none; d=google.com; s=arc-20160816; b=XYdu4jE42IWSL5UUqlAKAiA+NaaV2c2AEFvFo+/mes+OJI7j2lkOw6DSwQeu+Y6ZrK 0cXSXo2jkOoaoHLbcGDUVe9/lbKB2DO+qb6KwJ5Zg6CrQUNUtnXFf0kAQ7Tof5CRGpT+ gHhzsIKemzv+nMypULqX01DjPmlvRgt5aAbpTdjqTyhBsUzh2i31LiPqexoyIFDuVmKE 2zrt0u9+7P8wY3itdr3GZbnyFZkuRGB6ieB998IjafyR2vN0bAplEsWGLstEuGGzYM3k A4DYNEPolocViy70sG9D2LsDtXktkeDj5bilMvG+p8isSNgI1Fp+95bfhcFPp7XuFdgv 99Dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=5xNK/MTbEqtX23mMEoAq+L0g1SXC7vXJ2rcTgDZ6l68=; b=W/yBIQ9Kc37VEu62k6qRW2NFyPy9rvimu6Sczng0P215qgPh1oXWgCXPk0PaZ3nDKJ saBvYwMZfptqA3QTJCYb0ppBUaPXobL1wev7mT3bCSVZR2VfNZOsbr1EArCj79Q/LQdf AKLhtbg0zyA6ML19R/nAF7mopYAxHrsGmnTG+F9juzc9UA4yrZooYJJ2Vcl9lMtyLdjB BtlwG8UBCGpK1uk1mUr1jXt26/y/c1SHqln6na1TPxyMFQcrCasC1pBqABEtHvaF9jni RWmT3QPqfkgiu++/nLahTV88pg8cAC0YvTOHSPtRUTO8dsMIrNM24ED+kO4Qa65ZY5FD WpTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HEbewUsN; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s21-20020a63af55000000b00543ec6d7272si2247943pgo.321.2023.06.09.00.43.49; Fri, 09 Jun 2023 00:44:03 -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=@linaro.org header.s=google header.b=HEbewUsN; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238842AbjFIHeS (ORCPT + 99 others); Fri, 9 Jun 2023 03:34:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230407AbjFIHeQ (ORCPT ); Fri, 9 Jun 2023 03:34:16 -0400 Received: from mail-oi1-x236.google.com (mail-oi1-x236.google.com [IPv6:2607:f8b0:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9396B420A for ; Fri, 9 Jun 2023 00:33:41 -0700 (PDT) Received: by mail-oi1-x236.google.com with SMTP id 5614622812f47-392116ae103so401138b6e.0 for ; Fri, 09 Jun 2023 00:33:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686295971; x=1688887971; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=5xNK/MTbEqtX23mMEoAq+L0g1SXC7vXJ2rcTgDZ6l68=; b=HEbewUsNGS50ieFcyYoG1ozubQFfbhr2RNELqQTjciRhM1EaPNh3RN2Em5vLBeMtvm q17dOBrBd0glGLQTVF2mpHimV4pTUDg9eSLsq3qhZiotjtwxRN80c3wekpJBBfjSydTd zQ+M9WjPtBhtGIVsye5iaAKlqbQ27AAgvvzOyN7SVCaG1ivpDi9LKA7Tl1MNcjjteg0e 2mVsqpj44pYPKTGjDBfxJOJSqC12umF67k3OTW5FH6DTyu2WN2DvclvhEjjU+HFYNbNL QvocvVaD41fqDmPXDvtRYC0SWdTy1Pzwc70k/k1WyWAIIsG7wpkN24bfOc98xto5JEXp +aUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686295971; x=1688887971; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5xNK/MTbEqtX23mMEoAq+L0g1SXC7vXJ2rcTgDZ6l68=; b=MouGUFooOx8u3JaRiKe6O/PKz/UIAq0px+qMY9By/2kHmuANn7vV5CQyvjwoV12D4h rfSMs5E9DzXOddo8w5ihmfxZ/zQpFmd3BzVEfK0XhqteZoAC7TpdXqCdeM7hifMPZe3K QMkvkmWbmkts1JB4HgDN+XT8isLsXzt/QPZmIyT/W5OYd/DLemw33wYuzaPcWtlr1QT/ fv30E/hiLZF/cZYNzq6Ck1/aA7LqKF1G+oXBsMBn6vK8wbz9jUNNEWfGSv2418UMwg1p l8QgB9NOTNji02BfFMsKQrCButoAMzWGA6EM2ab8ypgAoCCDrDkloiuaRPGqZFhpFgJR Gc0Q== X-Gm-Message-State: AC+VfDwq40uKh/eBQ++gejPBl7LOboUc4urPvqt9stEmLQ0//hfaGHet 6L5c3P5HezLTjwTibQZv7iIktpRowzVESxXknzLFXqWmDEHz9CoX X-Received: by 2002:a05:6808:1b2b:b0:39a:ab69:778e with SMTP id bx43-20020a0568081b2b00b0039aab69778emr729417oib.23.1686295971224; Fri, 09 Jun 2023 00:32:51 -0700 (PDT) MIME-Version: 1.0 References: <1685277277-12209-1-git-send-email-wellslutw@gmail.com> <9ace5c4c-5e17-4207-5a02-6a47ba0aee22@web.de> In-Reply-To: <9ace5c4c-5e17-4207-5a02-6a47ba0aee22@web.de> From: Linus Walleij Date: Fri, 9 Jun 2023 09:32:40 +0200 Message-ID: Subject: Re: [PATCH] pinctrl: sunplus: Delete an unnecessary check before kfree() in sppctl_dt_node_to_map() To: Markus Elfring , Lu Hongfei Cc: kernel-janitors@vger.kernel.org, linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Andy Shevchenko , Dvorkin Dmitry , Wells Lu , LKML , cocci@inria.fr, Wells Lu Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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 Tue, Jun 6, 2023 at 3:26=E2=80=AFPM Markus Elfring wrote: > From: Markus Elfring > Date: Tue, 6 Jun 2023 15:00:18 +0200 > > It can be known that the function =E2=80=9Ckfree=E2=80=9D performs a null= pointer check > for its input parameter. > It is therefore not needed to repeat such a check before its call. > > Thus remove a redundant pointer check. > > Signed-off-by: Markus Elfring Lu Hongfei sent a patch changing the code around this location so I rebased it manually and applied, check the result, thanks! Yours, Linus Walleij