Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp260837pxf; Wed, 31 Mar 2021 23:56:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxtt7snujy2VH5aHCe8vYOhBKlLxHHA0jOTi6/kaCNJCvdXuKJxPIKoIDc3Vq1IY7WwuVfH X-Received: by 2002:aa7:dc49:: with SMTP id g9mr7999579edu.60.1617260182261; Wed, 31 Mar 2021 23:56:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617260182; cv=none; d=google.com; s=arc-20160816; b=gd5cEjE4kf9jrLYWnw3pHDbPXAwjPfe0IM/6VVY7VBaDFvIg0TyUC7+2PQ12nvR0ey f94/mbz/sIOhc/ylyIR+W1mU6ln5uE7XviyN0T+zKZlpjbyj5UohB7Ud1SAxM62FqBTc hkJa975cobWLUpl+/Z8yrOsBwVk7CjF6f9BaS5Rd39U69YiT9rMSEaRtzJC3brDuJ+Az 8GiysaRTaIGlSglMd7XotFLMlckexrtzNHK5C8nS0eC04a55vja43+i/A8qFB1w2MMso 0dYNXDdmicuGnpCHmopS2BFbOhkgJC/X4w73i1ac5tmqcL18ejkLydW6HlbAgrGgYj3E zTiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=Ncxtp95dRx9hXRfYq4wiXTx7uKCQbsbnycO7nCgohR4=; b=La8LjBsaKQbZaZpH6Bzf/77DvF/cCoKglO+H2BVYhKvEobeZsWiSK/WsePv8fLbz9Z cXih6ObCiAHJ6SrQt9VuQfzUCO6ho/8Qcixk0199XW7tNe5IOhp26x69iAMDGPgOcGsk ra9vzwmHvKRKVGzh+9rNwWRZuboidZlYV3YkmxnfsohmfvuqMMV4mO7lje+7XITW3fhY iEIdliguJ6A/35YszznHBq9qZVySB/GxjRVYHHX59UtQGX0PFzVOp52bTEPJaLzwGK3S 5eGDl8Rk26jJ35olgph8hpc8Up0Qtn4LRGfAZhxSfcQo+pirkpK+sG/yOoFZ2/8HWvCN SdBg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-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 hs11si4153177ejc.561.2021.03.31.23.55.44; Wed, 31 Mar 2021 23:56:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-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-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-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 S233542AbhDAGxw (ORCPT + 99 others); Thu, 1 Apr 2021 02:53:52 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:15425 "EHLO szxga06-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233283AbhDAGx0 (ORCPT ); Thu, 1 Apr 2021 02:53:26 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4F9v3s44KnzjXhh; Thu, 1 Apr 2021 14:51:37 +0800 (CST) Received: from localhost.localdomain (10.67.165.24) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.498.0; Thu, 1 Apr 2021 14:53:13 +0800 From: Meng Yu To: , , CC: , , , Subject: [PATCH 1/2] Bluetooth: Remove 'return' in void function Date: Thu, 1 Apr 2021 14:50:38 +0800 Message-ID: <1617259839-31383-2-git-send-email-yumeng18@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1617259839-31383-1-git-send-email-yumeng18@huawei.com> References: <1617259839-31383-1-git-send-email-yumeng18@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org void function return statements are not generally useful. Signed-off-by: Meng Yu --- net/bluetooth/6lowpan.c | 2 -- net/bluetooth/l2cap_core.c | 2 -- 2 files changed, 4 deletions(-) diff --git a/net/bluetooth/6lowpan.c b/net/bluetooth/6lowpan.c index cff4944..19f7e42 100644 --- a/net/bluetooth/6lowpan.c +++ b/net/bluetooth/6lowpan.c @@ -841,8 +841,6 @@ static void chan_close_cb(struct l2cap_chan *chan) } else { spin_unlock(&devices_lock); } - - return; } static void chan_state_change_cb(struct l2cap_chan *chan, int state, int err) diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index 56e1975..ccfe8ad 100644 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c @@ -676,8 +676,6 @@ void l2cap_chan_del(struct l2cap_chan *chan, int err) skb_queue_purge(&chan->tx_q); break; } - - return; } EXPORT_SYMBOL_GPL(l2cap_chan_del); -- 2.8.1