Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp3608760pxb; Fri, 11 Feb 2022 03:58:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJzPXcgdaf+EpXOWTW6zbmgVAEKCuutHQGU8doadeaJUuhHfCQydh4Nn2Z7FHGC1itsuPolv X-Received: by 2002:a17:906:64de:: with SMTP id p30mr1105356ejn.750.1644580679716; Fri, 11 Feb 2022 03:57:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644580679; cv=none; d=google.com; s=arc-20160816; b=c5FnUHtrIXwH7bGB4l/IeggXE9dO763fL4ykJN8q1fCQ/GSeZYQrzR12cqT9QGKg6b 2fFf4u79nup12pcLIL4MGDSB972/itlbH5oOiR9zcx498BPp9wRHCMbQNtUTdiLKnatq GJFStlr/EZJDpmMrBvH8JlOj67+TCNfXRHYpggVBNlEJru4hQfLqGVTLgwGjVp8eNuvb tRHPTGVCYzhuZfROiCU30PNh9Jm4A042jOX91G12vaqhc1IKXamnpGp/dUq8gU3xz+FG bMVqNJU4EhMiqN65731igsC7XuhgGkZghgJHEFCmEWAS3cb7L2xDftJELdB97jvC8RHf Nhqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=dTN6FickAcVPgVjW2UUCx0PlKyGKDjTzkZ/0MQ6fTqs=; b=Bi5eRqJu+qYugub8ZmQNqWTQdP9a0RY5ltsjarfbjpa/Gw95BCyqcgzJOiP1aWq5BA f0GWutP5+FdlY/UWWwK7sXAZAJPo+LlFRc1cg6gOmi9kN77cypr6AGqJiBgg0O13Ua3D 7pCh5a/9Y+56pdgh/HLw8B5k7V9H5cEmHkz7tOTHd3tofemmYaQRihY6qoHnWdJfjukp vLad2oj5VC5u5YwbXmbW+obTB0ycC8ZOa6L8eSLbqlEEt+h3GCD2nnT8F0klesxhBRGi cOmb5SDubfe2z2HXn74m91prKFMtmf5w4OO8QIwbKcNaTDajGLCvj0b0S/eYoxGpVR9k lKCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Z8i4tThq; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hr34si8462209ejc.191.2022.02.11.03.57.34; Fri, 11 Feb 2022 03:57:59 -0800 (PST) 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=@redhat.com header.s=mimecast20190719 header.b=Z8i4tThq; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244204AbiBKEuJ (ORCPT + 99 others); Thu, 10 Feb 2022 23:50:09 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:41922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229540AbiBKEuF (ORCPT ); Thu, 10 Feb 2022 23:50:05 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8E01A25D7 for ; Thu, 10 Feb 2022 20:50:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1644555003; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dTN6FickAcVPgVjW2UUCx0PlKyGKDjTzkZ/0MQ6fTqs=; b=Z8i4tThqiQM0z95hsb0AunDuM5bg4X/wlrSmZTeI5ZJ30zcLG+HfpWjIqrdLnCZMkUdHqx UBtAG+Rl0P1usA4GNdnJ4Jbd/R2gFxinmha9gAp7oeQtxh9sww9p5QLeBzqbynC8SnfvAK Pswz0i4BA9C9Js/++FUG/ghdHw07nHc= Received: from mail-qt1-f199.google.com (mail-qt1-f199.google.com [209.85.160.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-501-rjBgemJ0OxeCLx6C97nC0g-1; Thu, 10 Feb 2022 23:50:02 -0500 X-MC-Unique: rjBgemJ0OxeCLx6C97nC0g-1 Received: by mail-qt1-f199.google.com with SMTP id a28-20020ac84d9c000000b002d05c958a84so6065072qtw.0 for ; Thu, 10 Feb 2022 20:50:02 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=dTN6FickAcVPgVjW2UUCx0PlKyGKDjTzkZ/0MQ6fTqs=; b=cSoxoMAu02hroCqCSuRdPtBwR6VLOC0pnG21xrL7Q8d+gYe5rToNGGGS2NU17BeNzD P4v2IEkXv94Zj3W+9tldu/ox3owyRNTV8yEoXoVL/2mFP6ABqEgbDLhVwyBSrjxskyMt th9aHo1RlG7loibQmfV6MokGvPvyxf7LbNg7RkbgjsUekNDw22wH36yueyKfx8r6U1cw r3JcADaYuvtXRBZLZb41e2JmVdw2YbahBwfeBS9SrKbiFl1yWm9Bdjy98PzyZd4QsKeQ Kk7Jxr5v71CG/C9pUiJ8BNK6GgCgLATZn1Bz6W6dIl1atCcvwgKn1hiwyu1qXTUZ2Ptp Y8Jw== X-Gm-Message-State: AOAM530LUJcSxurC5uUIpYDJflghOYUi7D5CtpWi+9LpEbrYueFDpixS ZVnMnaj08xcUhA3+u47/0aBt0s164Uwn6NHRm9x1KeWaEd/YUUX5/hQYNSCD4fMoI6zN3tn2bzM vsVF7E1J9Abjne+39c0uUiwrB X-Received: by 2002:a05:622a:5ce:: with SMTP id d14mr7366625qtb.7.1644555001917; Thu, 10 Feb 2022 20:50:01 -0800 (PST) X-Received: by 2002:a05:622a:5ce:: with SMTP id d14mr7366622qtb.7.1644555001709; Thu, 10 Feb 2022 20:50:01 -0800 (PST) Received: from localhost.localdomain (024-205-208-113.res.spectrum.com. [24.205.208.113]) by smtp.gmail.com with ESMTPSA id bp18sm3323284qtb.72.2022.02.10.20.49.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 10 Feb 2022 20:50:01 -0800 (PST) Subject: Re: [PATCH] spi: Fix warning for Clang build To: =?UTF-8?B?TGggS3VvIOmDreWKm+ixqg==?= , Mark Brown , Li-hao Kuo Cc: "linux-spi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , =?UTF-8?B?V2VsbHMgTHUg5ZGC6Iqz6aiw?= References: <691d52b72f978f562136c587319852f5c65f08fe.1644460444.git.lhjeff911@gmail.com> <99ab624e2af4414bb2a785f64f35bd95@sphcmbx02.sunplus.com.tw> From: Tom Rix Message-ID: Date: Thu, 10 Feb 2022 20:49:58 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <99ab624e2af4414bb2a785f64f35bd95@sphcmbx02.sunplus.com.tw> Content-Type: text/plain; charset=big5; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 2/10/22 7:32 PM, Lh Kuo ???O?? wrote: >> The return here means that the initialization is now redundant and will stop the compiler spotting any >> future similar issues which isn't ideal. > I got it, so do I need to submit a new patch? Assuming yes, so something else.. Looking again at the function, there are 3 sets of if-check blocks these could be combined into the first one. The later two are variations on is this an rx or a tx, the first check does that. T > >