From patchwork Sat Jan 29 11:55:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Shtylyov X-Patchwork-Id: 12729447 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C8F1DC433FE for ; Sat, 29 Jan 2022 11:55:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240838AbiA2Lzf (ORCPT ); Sat, 29 Jan 2022 06:55:35 -0500 Received: from mxout02.lancloud.ru ([45.84.86.82]:39864 "EHLO mxout02.lancloud.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240720AbiA2LzY (ORCPT ); Sat, 29 Jan 2022 06:55:24 -0500 Received: from LanCloud DKIM-Filter: OpenDKIM Filter v2.11.0 mxout02.lancloud.ru 9CF2722F7EB7 Received: from LanCloud Received: from LanCloud Received: from LanCloud From: Sergey Shtylyov To: "David S. Miller" , Jakub Kicinski , CC: Subject: [PATCH v2 0/2] Remove some dead code in the Renesas Ethernet drivers Date: Sat, 29 Jan 2022 14:55:15 +0300 Message-ID: <20220129115517.11891-1-s.shtylyov@omp.ru> X-Mailer: git-send-email 2.26.3 MIME-Version: 1.0 X-Originating-IP: [192.168.11.198] X-ClientProxiedBy: LFEXT02.lancloud.ru (fd00:f066::142) To LFEX1907.lancloud.ru (fd00:f066::207) Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Here are 2 patches against DaveM's 'net-next.git' repo. The Renesas drivers call their ndo_stop() methods directly and they always return 0, making the result checks pointless, hence remove them... Sergey Shtylyov (2): ravb: ravb_close() always returns 0 sh_eth: sh_eth_close() always returns 0 drivers/net/ethernet/renesas/ravb_main.c | 5 +---- drivers/net/ethernet/renesas/sh_eth.c | 4 +--- 2 files changed, 2 insertions(+), 7 deletions(-)