Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1174348rwd; Sun, 14 May 2023 14:29:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7Jn9Bwvvb628ZZhxuljL5+2Zd6thSpb71Rdo/pq+SHuzctIplnA0WSk1a3avkvWUCkRFI/ X-Received: by 2002:a05:6a20:6a24:b0:101:136a:a061 with SMTP id p36-20020a056a206a2400b00101136aa061mr28611265pzk.9.1684099740445; Sun, 14 May 2023 14:29:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684099740; cv=none; d=google.com; s=arc-20160816; b=OBaYldP8T2pYP6UJ1qi7HeDLT3cTIF7y0Obmkk++/8XTSQQIdWseT8c+RE5/uaez5/ 4Ou6+61g+ywo4BjJAW1xdwZVpqS7L0eYOVZW6G+yInwP3OouSgRffn6B9TA+6ARmm272 YR7Cuy3yiuNpXnZ5KQrX7r7SyfVfKP1VjECa2FD0Py4HpxaWmcN1pYlkPiTL3DPJGeD/ eRutsMFmt1jOrmq0uBTziOkvJkptM9w9BeQrInQFb6zGmXEnThH3ujpUtr3YtvGPivqT 0S3QynpECPcy4hyHYYKuoAYq4hNYhgiJ/qSm201q4MBH7MiwwH4kFmCLEFKRrUvbnnLb T7wQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:date:from; bh=Ka5XT1S7xgpHR03BqsSGUG/u6AbNixLTfP2Vs0Apvzg=; b=aT4PbnH7+6FdvFmiUHJdySurx/yLkrY/G1126L3pRuckG2ah9AbjbFMF8NE7fEBSHy azz1ItDn52AbQ2KVXJFJ6hEiEjLlk3fqU+0A50BsArpArssyDynm/c6a8yq30KRMRnos 7CPF1hMEcuMP+AtvimIum+WFVhravKefpJ/g4oK71Z+LWgPKj4+63VrW1036gp7zNMPs JJXsqEp2AtkgAAaDdKy0P2CwNKzoQ0vijFGyQHoOiAnpRhS6UVCQtVMGS2XH7j0PPQTg Zwyv5Xk77AsIGAIwTl0UaZgTS3zeQG2s887pKKHCeDNNW2R0Ihijip9Tcd13DYvFhMkI A/QQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 x3-20020a63b343000000b00502d81ecf19si15124534pgt.646.2023.05.14.14.28.46; Sun, 14 May 2023 14:29:00 -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; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235175AbjENVKq (ORCPT + 99 others); Sun, 14 May 2023 17:10:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229585AbjENVKp (ORCPT ); Sun, 14 May 2023 17:10:45 -0400 Received: from fgw23-7.mail.saunalahti.fi (fgw23-7.mail.saunalahti.fi [62.142.5.84]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8136210D7 for ; Sun, 14 May 2023 14:10:43 -0700 (PDT) Received: from localhost (88-113-26-95.elisa-laajakaista.fi [88.113.26.95]) by fgw23.mail.saunalahti.fi (Halon) with ESMTP id c70aa805-f29b-11ed-b972-005056bdfda7; Mon, 15 May 2023 00:10:39 +0300 (EEST) From: andy.shevchenko@gmail.com Date: Mon, 15 May 2023 00:10:39 +0300 To: Lizhe Cc: linus.walleij@linaro.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1] drivers/pinconf.c: Remove redundant check for the existence of the member Message-ID: References: <20230514165932.251200-1-sensor1010@163.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230514165932.251200-1-sensor1010@163.com> X-Spam-Status: No, score=0.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FORGED_GMAIL_RCVD,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,SPF_HELO_NONE, SPF_SOFTFAIL,T_SCC_BODY_TEXT_LINE autolearn=no 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 Mon, May 15, 2023 at 12:59:32AM +0800, Lizhe kirjoitti: > "pin_config_set" in pinconf_ops. > > In the function of registering pinctrl_dev, pinctrl_init_controller(), > a non-null check has already been performed on the members > pin_config_set and pin_config_group_set in the ops structure. NAK. Try to analyse what `if (!foo && !bar)` means from the logic perspective and deduce from that the problem in your proposal. P.S. It's not the first wrong proposed change from you. Dunno if you even trying to read the code... -- With Best Regards, Andy Shevchenko