Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp910804pxj; Fri, 21 May 2021 01:55:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydaz5caFnIl6ZWgJdNNLu4r4nhO9qXe6wKn9UqUCLCucI3Q+9RVTOMlb5LJrmmL/o+bmUL X-Received: by 2002:a17:906:1617:: with SMTP id m23mr9596100ejd.352.1621587327588; Fri, 21 May 2021 01:55:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621587327; cv=none; d=google.com; s=arc-20160816; b=FHJdQfHIpv8I+1cnljX6I0rpaPSI7W2XmPFR3YmBDq+fPlh6EFHPok743rMxu7AwfC 7F2zukThisuuFV9w7tmia9nvk2Y/4X/IaJxKI+J4Pr3ROVs86QbcGimW3Px1Rex/NzHl VKVE41kB2R/wKsXvvmdf4UEIB5CQYcwpAMFEnZiI6oKYIJFigSamlokK8GD53ylx487H RozsBsB12JRTsrH7Pt7lAR5LvibfZgGiS9ZZFePpMUZJR9M43n65vvCJ84cGKq6Gm2JJ mkKyISmmcuAeYKygwauKfcLPl+ZNEqix3XX/e98/RcvBxGYHwgrgKqq4YGs3k1E/WvQC mGFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=lGh5qhnupePQQ1n0aabfOll7vtdqiX9M29UjceYv6Sk=; b=CSjPhvjJ+g3WRpvKQWjuIaKZuCBSw4lHzml5x6oIPXh5bachlcbFCXtEc/A+iVilrF Kevp6sQfUjVEPqg3+Dq0iLMtExj0zgG9eU1PMKJJlOjgqqM7vV3rO+uJn0GUVyAcngXF Hw+iddW9OwOIcVJZhyfU8fybwacRTycrix9YJVZm8M6Af30ZnwlusV4R2TrLrSbAZRed tY8p18q8bX3jt/yoBPFNNvmyYslV7KV8n2priwvdNGDByCF7E9EoNdYOvNyfEeC0sqhm 1dTBmM8f7YUnnqRYw0Vx0bRSM7BSVHDpbLtnhM5y+yQi/mOms1541FIB2hJdRWcGMt9e Hd9w== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z3si4868156ejl.122.2021.05.21.01.55.00; Fri, 21 May 2021 01:55:27 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235562AbhEUAvH (ORCPT + 99 others); Thu, 20 May 2021 20:51:07 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:3634 "EHLO szxga06-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235556AbhEUAvH (ORCPT ); Thu, 20 May 2021 20:51:07 -0400 Received: from dggems706-chm.china.huawei.com (unknown [172.30.72.60]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4FmScZ5Hk2zmWjv; Fri, 21 May 2021 08:47:26 +0800 (CST) Received: from dggeme759-chm.china.huawei.com (10.3.19.105) by dggems706-chm.china.huawei.com (10.3.19.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Fri, 21 May 2021 08:49:43 +0800 Received: from [127.0.0.1] (10.40.188.144) by dggeme759-chm.china.huawei.com (10.3.19.105) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Fri, 21 May 2021 08:49:43 +0800 Subject: Re: [PATCH] ssb: remove unreachable code To: =?UTF-8?Q?Michael_B=c3=bcsch?= , Tian Tao CC: , Kalle Valo References: <1621306352-3632-1-git-send-email-tiantao6@hisilicon.com> <20210520185136.2cc3b32b@wiggum> From: "tiantao (H)" Message-ID: <0a40049b-691c-c75f-ece2-a669842bedaf@huawei.com> Date: Fri, 21 May 2021 08:49:42 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20210520185136.2cc3b32b@wiggum> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.40.188.144] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggeme759-chm.china.huawei.com (10.3.19.105) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org 在 2021/5/21 0:51, Michael Büsch 写道: > 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 == -EBUSY) will not hold, so delete it. >> @@ -431,9 +431,7 @@ void ssb_bus_unregister(struct ssb_bus *bus) >> int err; >> >> err = ssb_gpio_unregister(bus); >> - if (err == -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.:-) > > Acked-by: Michael Büsch >