From patchwork Thu Jan 16 08:25:19 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: wangweidong X-Patchwork-Id: 311626 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 5A6E82C007A for ; Thu, 16 Jan 2014 19:26:10 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751540AbaAPI0G (ORCPT ); Thu, 16 Jan 2014 03:26:06 -0500 Received: from szxga02-in.huawei.com ([119.145.14.65]:33092 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750960AbaAPI0E (ORCPT ); Thu, 16 Jan 2014 03:26:04 -0500 Received: from 172.24.2.119 (EHLO szxeml210-edg.china.huawei.com) ([172.24.2.119]) by szxrg02-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id BOP97259; Thu, 16 Jan 2014 16:25:26 +0800 (CST) Received: from SZXEML419-HUB.china.huawei.com (10.82.67.158) by szxeml210-edg.china.huawei.com (172.24.2.183) with Microsoft SMTP Server (TLS) id 14.3.158.1; Thu, 16 Jan 2014 16:25:19 +0800 Received: from [127.0.0.1] (10.177.18.75) by szxeml419-hub.china.huawei.com (10.82.67.158) with Microsoft SMTP Server id 14.3.158.1; Thu, 16 Jan 2014 16:25:21 +0800 Message-ID: <52D7976F.7070708@huawei.com> Date: Thu, 16 Jan 2014 16:25:19 +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: Neil Horman , David Miller , Vlad Yasevich CC: , Subject: [PATCH net-next] sctp: remove the unnecessary assignment X-Originating-IP: [10.177.18.75] X-CFilter-Loop: Reflected Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org When go the right path, the status is 0, no need to assign it again. So just remove the assignment. Signed-off-by: Wang Weidong Acked-by: Neil Horman --- net/sctp/protocol.c | 1 - 1 file changed, 1 deletion(-) diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c index 7c16108..d6934dc 100644 --- a/net/sctp/protocol.c +++ b/net/sctp/protocol.c @@ -1461,7 +1461,6 @@ static __init int sctp_init(void) if (status) goto err_v6_add_protocol; - status = 0; out: return status; err_v6_add_protocol: