Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp934036pxj; Fri, 21 May 2021 02:34:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqNQbI5usOrwsh0lkU0imURoyqA6XO8r2bYj5AFXisPMllDT1NF2dKyumeHgifXwjgB2Bu X-Received: by 2002:a02:1989:: with SMTP id b131mr3063681jab.54.1621589658557; Fri, 21 May 2021 02:34:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621589658; cv=none; d=google.com; s=arc-20160816; b=Qo7O4IJ+/G7IbNjaUyoA/WddXo9P8Zow122lhWonJs3Ru8YfI6nKmw805jlt2Fwg8x dpHlTpoLH2jaNYtfUmgivSGwdXseK32N0FUwYwlnoqeXPv0tFroJGbPjVI+hC9J86y4M Ft4M8WA1pgIJuQH4g94XbhP0dk1teXgHEZ5dSzP1YGCyDLEQXRv9qy1TXfCOBiK2KYER zafb6pEVsNSqZP4aCL23abXeTzuFvIc9Q6Ns0k8wy6dwXhtB7hWe3nAnGr9KNajB3BvZ riXe9I/bz2tr2ocNtbI62GV4pj4Cr2I2GZJ/gWk4W7Lbfhcjy4S/AnxJam6wTk6LtPx6 +uLg== 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 :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from:dmarc-filter:sender:dkim-signature; bh=aGkK2gfptAXaHXflFcMtO/KvXDuAdLxK1/6CMuARijk=; b=mazYpNCBbcinI3QsL4Tt+b/fNIBGT+lYpq7XNCc+q98eXIn65EgDwUE+qJ4lth15jI ecHN7/5tqs9OlwFaAx2qx/6TFPb3NWcNv4ZSDHiY2Gd9WM+gSWO1LDwLzUSWNed50vAy BM0ZN8Vopq/7aOoY+RxbMtJNWLS/oybVwk/z2yO2xtBmpR049aVfCescmS6hVSdBaUTD /nsZIlhDwXeMvsTdRGEBKja3hbfk0suj/Gxiotm6l1gBZFMKuMQGRdjtGxnUI6FzgzLf bPtjW3Dk/nbl4rnWxp+AQ0kI7Tnq9W8UuylOH1QNKV/K2io0pQbx+NHUW5RO65nMQfzs qKHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b="H/dqIPsO"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m20si5445176ioy.69.2021.05.21.02.34.04; Fri, 21 May 2021 02:34:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b="H/dqIPsO"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238507AbhEUDh7 (ORCPT + 99 others); Thu, 20 May 2021 23:37:59 -0400 Received: from so254-9.mailgun.net ([198.61.254.9]:27834 "EHLO so254-9.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236995AbhEUDh7 (ORCPT ); Thu, 20 May 2021 23:37:59 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1621568197; h=Content-Transfer-Encoding: Content-Type: MIME-Version: Message-ID: In-Reply-To: Date: References: Subject: Cc: To: From: Sender; bh=aGkK2gfptAXaHXflFcMtO/KvXDuAdLxK1/6CMuARijk=; b=H/dqIPsOmKrH4K96L24/KrUs3GbF3UfsZCLd0ZZDFW1GcGmfdu9P/GnHBzpDYQGPTwbgWSU9 IRWex+3vwvzmebp0locMQg+R0YgA97u/X2soojspCJmlNPvO+N48K2wvLLafsas9rte9IWXt x1TklMERzhQGozABNaVVUIsc3hs= X-Mailgun-Sending-Ip: 198.61.254.9 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n01.prod.us-east-1.postgun.com with SMTP id 60a72aafd1aee7698d749a40 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 21 May 2021 03:36:15 GMT Sender: kvalo=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id CDA07C433D3; Fri, 21 May 2021 03:36:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from potku.adurom.net (88-114-240-156.elisa-laajakaista.fi [88.114.240.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: kvalo) by smtp.codeaurora.org (Postfix) with ESMTPSA id 7E80BC433D3; Fri, 21 May 2021 03:36:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 7E80BC433D3 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=kvalo@codeaurora.org From: Kalle Valo To: "tiantao \(H\)" Cc: Michael =?utf-8?Q?B=C3=BCsch?= , Tian Tao , Subject: Re: [PATCH] ssb: remove unreachable code References: <1621306352-3632-1-git-send-email-tiantao6@hisilicon.com> <20210520185136.2cc3b32b@wiggum> <0a40049b-691c-c75f-ece2-a669842bedaf@huawei.com> Date: Fri, 21 May 2021 06:36:07 +0300 In-Reply-To: <0a40049b-691c-c75f-ece2-a669842bedaf@huawei.com> (tiantao's message of "Fri, 21 May 2021 08:49:42 +0800") Message-ID: <87mtsohi6w.fsf@codeaurora.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org "tiantao (H)" writes: > =E5=9C=A8 2021/5/21 0:51, Michael B=C3=BCsch =E5=86=99=E9=81=93: >> On Tue, 18 May 2021 10:52:32 +0800 >> Tian Tao wrote: >> >>> The return value of ssb_bus_unregister can only be 0 or 1, so this >>> condition if (err =3D=3D -EBUSY) will not hold, so delete it. >>> @@ -431,9 +431,7 @@ void ssb_bus_unregister(struct ssb_bus *bus) >>> int err; >>> err =3D ssb_gpio_unregister(bus); >>> - if (err =3D=3D -EBUSY) >>> - pr_debug("Some GPIOs are still in use\n"); >>> - else if (err) >>> + if (err) >>> pr_debug("Can not unregister GPIO driver: %i\n", err); >>> ssb_buses_lock(); >> Good catch. >> Minor correction: The return value can be 0 or -1. > > yes, you are right. thanks again.:-) I'll fix the commit log to match that. --=20 https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatc= hes