From patchwork Wed Dec 18 09:20:32 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: wangweidong X-Patchwork-Id: 302747 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id BACAF2C00A2 for ; Wed, 18 Dec 2013 20:21:46 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752902Ab3LRJVl (ORCPT ); Wed, 18 Dec 2013 04:21:41 -0500 Received: from szxga03-in.huawei.com ([119.145.14.66]:17286 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751411Ab3LRJVj (ORCPT ); Wed, 18 Dec 2013 04:21:39 -0500 Received: from 172.24.2.119 (EHLO szxeml205-edg.china.huawei.com) ([172.24.2.119]) by szxrg03-dlp.huawei.com (MOS 4.4.3-GA FastPath queued) with ESMTP id AHY36900; Wed, 18 Dec 2013 17:20:36 +0800 (CST) Received: from SZXEML448-HUB.china.huawei.com (10.82.67.191) by szxeml205-edg.china.huawei.com (172.24.2.58) with Microsoft SMTP Server (TLS) id 14.3.158.1; Wed, 18 Dec 2013 17:20:33 +0800 Received: from [127.0.0.1] (10.135.68.79) by szxeml448-hub.china.huawei.com (10.82.67.191) with Microsoft SMTP Server id 14.3.158.1; Wed, 18 Dec 2013 17:20:33 +0800 Message-ID: <52B168E0.1060108@huawei.com> Date: Wed, 18 Dec 2013 17:20:32 +0800 From: Wang Weidong User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 MIME-Version: 1.0 To: David Miller , Vlad Yasevich , Neil Horman CC: , Subject: [PATCH net-next 2/3] sctp: remove the never used 'return' and, redundant 'break' X-Originating-IP: [10.135.68.79] X-CFilter-Loop: Reflected Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org In switch() had do return, and never use the 'return NULL'. The 'break' after return or goto has no effect. Remove it. Signed-off-by: Wang Weidong --- net/sctp/input.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/net/sctp/input.c b/net/sctp/input.c index 2a192a7..c956dc9 100644 --- a/net/sctp/input.c +++ b/net/sctp/input.c @@ -1120,15 +1120,10 @@ static struct sctp_association *__sctp_rcv_lookup_harder(struct net *net, case SCTP_CID_INIT: case SCTP_CID_INIT_ACK: return __sctp_rcv_init_lookup(net, skb, laddr, transportp); - break; default: return __sctp_rcv_walk_lookup(net, skb, laddr, transportp); - break; } - - - return NULL; } /* Lookup an association for an inbound skb. */