Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3905948pxj; Tue, 8 Jun 2021 01:21:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPi7X3DYBeyLnaBCrWPQnUGCyciS8ZcqiZj8KBDc1CutvrhgsR/rB28u/F7EGr0KSLFtmv X-Received: by 2002:a17:906:17c4:: with SMTP id u4mr22446526eje.481.1623140494465; Tue, 08 Jun 2021 01:21:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623140494; cv=none; d=google.com; s=arc-20160816; b=wYlgGFQxOAUIzg3RtDnaUHN898PeeRLwyClYMXs8VryOUiby3x04Loziw+TscQXlRH knVU19AHe7N6srlUk0pTaodtMCh/zFLNmmJkLwApcb8P+xitPFt0Ljnu2AZ0oz5fSpTO KSYi2DUvbrsxmiuDDuX9G1UFNCHRTQSBgZMW9m+5u5C2Ot1hPEqjJofwzcVQAPw5CiBL JHrIbKzlKk/OIVqHR2AEmDhMo20cZHt05OBEf+LFU9XP268xnkhQZ9xfxje41jkfkoeH J+4DGVPtzGSEGcr5UWp3XE2s3PnuMkSWSiAU5b1Gd33thDbd24Yghs/RKGVb/S84XDOm p/tg== 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=RpP1f1HoyO0bCYfUwlawnquErxKZIGOD+PfsC1Jf3SE=; b=jaaV/WAtq8TacUiZk0RRcfyi04NTsgLB4D5lmZLgMNJ62fLzbsM27y7cS44ktj0Pi1 cb2PqQ8Y+/eB5dD2BrPeX2oaBaKkzLa10OHsHYlgivlrr2KEV3S9NVD6toXpW/Pm8n91 woxvCPr40K8QW2IIm+nq2ouFybuHADm7Q5TlBD4cQ9bTfKoKtJLx32Qgr4VKAk/COZgJ yhi1VWkTLJYHcLYOaWTViFJXtZnvVGghSqDXdKDGZWxP5InxYe43b4plUpsJ/b8b3wL6 CviCDwnr1THJns9eWrekkPL6VQUpOyEKhJ3n3j1dv4qziEJB1E7gblZOy6o2JDfHnHon jOag== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 cz26si15169058edb.106.2021.06.08.01.21.11; Tue, 08 Jun 2021 01:21:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 S231501AbhFHISa (ORCPT + 99 others); Tue, 8 Jun 2021 04:18:30 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:3791 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230366AbhFHIRq (ORCPT ); Tue, 8 Jun 2021 04:17:46 -0400 Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4Fzjc61vlyzWsmg; Tue, 8 Jun 2021 16:11:02 +0800 (CST) Received: from dggemi759-chm.china.huawei.com (10.1.198.145) by dggemv711-chm.china.huawei.com (10.1.198.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Tue, 8 Jun 2021 16:15:52 +0800 Received: from localhost.localdomain (10.67.165.24) by dggemi759-chm.china.huawei.com (10.1.198.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Tue, 8 Jun 2021 16:15:52 +0800 From: Guangbin Huang To: , , , , CC: , , , Subject: [PATCH net-next 15/16] net: farsync: remove redundant return Date: Tue, 8 Jun 2021 16:12:41 +0800 Message-ID: <1623139962-34847-16-git-send-email-huangguangbin2@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1623139962-34847-1-git-send-email-huangguangbin2@huawei.com> References: <1623139962-34847-1-git-send-email-huangguangbin2@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To dggemi759-chm.china.huawei.com (10.1.198.145) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Peng Li Void function return statements are not generally useful. Signed-off-by: Peng Li Signed-off-by: Guangbin Huang --- drivers/net/wan/farsync.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/wan/farsync.c b/drivers/net/wan/farsync.c index 3aea3d3..10208f0 100644 --- a/drivers/net/wan/farsync.c +++ b/drivers/net/wan/farsync.c @@ -1156,7 +1156,6 @@ fst_recover_rx_error(struct fst_card_info *card, struct fst_port_info *port, rxp = (rxp + 1) % NUM_RX_BUFFER; } port->rxpos = rxp; - return; } /* Rx complete interrupt -- 2.8.1