From patchwork Sun Feb 14 19:56:33 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 8302991 X-Patchwork-Delegate: horms@verge.net.au Return-Path: X-Original-To: patchwork-linux-renesas-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id D65D09F372 for ; Sun, 14 Feb 2016 19:56:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4782120219 for ; Sun, 14 Feb 2016 19:56:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 98CFC201F2 for ; Sun, 14 Feb 2016 19:56:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751513AbcBNT4h (ORCPT ); Sun, 14 Feb 2016 14:56:37 -0500 Received: from mail-lb0-f177.google.com ([209.85.217.177]:35651 "EHLO mail-lb0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751420AbcBNT4h (ORCPT ); Sun, 14 Feb 2016 14:56:37 -0500 Received: by mail-lb0-f177.google.com with SMTP id bc4so68395785lbc.2 for ; Sun, 14 Feb 2016 11:56:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:user-agent :in-reply-to:references:mime-version:content-transfer-encoding :content-type; bh=mAvIKvJI1djXTLccYLXZ/oscd5puSePwxdrBWULb6qo=; b=lzQEliLRfMdcxu1Q8Sa0oUkLEpuaSVPxXiIyT0tOAFFOUlOqzo5gD2J/ElwXGDJuGw NJnk6iS+cG8nhr+BgEsNnLlzBc8vJfFjUFmv+l3VbXqt4m4eKy85DNv8UF49QV6pDhCV 3v0rq+v6My9asZArLBy6MXTKAFOy50MmKCVZ0vsjri07CxtzcBGR1nTpKGkE29+8XkUU 5hWXHksugphFpXZNj+GB3Hsweab/SwfVrguyTCMDa+TXtvMspWHfCLjEBwEm6xcEd2Lm oQRTe6u5O2WpHJKgSLdUM9bYjx6toy87CSmwdm6Mf86HVc/jSX1JRipk1vRfpMOehV7u xRMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=mAvIKvJI1djXTLccYLXZ/oscd5puSePwxdrBWULb6qo=; b=B899/Hr8FKZ8OnqYNwn0yo+/jofBEeScSL25fgUipXaCeYm6N0tWi17F+FI5sz30If /unoooB4+JE1/WxQaiSYaMhaNHyHZOj7NHFdDx+5nw2rQKr3n5DYK2NEd6s2tncUZQNv HdfGnytOo/uVwLR9uC9RNlKygCBpGNVkVXsuHlQvnjgIr8vEFE+d74Vnu/Q37MOBMbNr DQy0dTrcHsGAVw/0C5/wcfmTPST1+qAQuDQRYTKaYZB0KWrXI7HGYkRljZRDwSOOCF0m gooAkQfZPqbm1Mdv5TIkNzEAmiOO8fHNDNAwYAojOzOq0GHdr2GaQuF5wa7Jr/hgrSvn OfcA== X-Gm-Message-State: AG10YOT5/LbopwcBBr5eUGnQVWJyQxD7ZmsOUS3y3YqrrHi3q5Dk53LEUi6ede0eGBL3jg== X-Received: by 10.112.160.199 with SMTP id xm7mr4124529lbb.32.1455479795632; Sun, 14 Feb 2016 11:56:35 -0800 (PST) Received: from wasted.cogentembedded.com ([31.173.84.158]) by smtp.gmail.com with ESMTPSA id a124sm3246043lfa.40.2016.02.14.11.56.34 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 14 Feb 2016 11:56:34 -0800 (PST) From: Sergei Shtylyov To: netdev@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org Subject: [PATCH 2/2] sh_eth: kill useless *switch* defaults Date: Sun, 14 Feb 2016 22:56:33 +0300 Message-ID: <2512597.mgWUpMzAO5@wasted.cogentembedded.com> Organization: Cogent Embedded Inc. User-Agent: KMail/4.14.10 (Linux/4.2.8-200.fc22.x86_64; KDE/4.14.14; x86_64; ; ) In-Reply-To: <2504091.pf4fyK11eg@wasted.cogentembedded.com> References: <2504091.pf4fyK11eg@wasted.cogentembedded.com> MIME-Version: 1.0 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The driver often has the *default* cases doing nothing in the *switch* statements with the integer expressions -- remove them. Signed-off-by: Sergei Shtylyov Reviewed-by: Simon Horman --- drivers/net/ethernet/renesas/sh_eth.c | 12 ------------ 1 file changed, 12 deletions(-) Index: net-next/drivers/net/ethernet/renesas/sh_eth.c =================================================================== --- net-next.orig/drivers/net/ethernet/renesas/sh_eth.c +++ net-next/drivers/net/ethernet/renesas/sh_eth.c @@ -500,8 +500,6 @@ static void sh_eth_set_rate_gether(struc case 1000: /* 1000BASE */ sh_eth_write(ndev, GECMR_1000, GECMR); break; - default: - break; } } @@ -592,8 +590,6 @@ static void sh_eth_set_rate_r8a777x(stru case 100:/* 100BASE */ sh_eth_modify(ndev, ECMR, ECMR_ELB, ECMR_ELB); break; - default: - break; } } @@ -658,8 +654,6 @@ static void sh_eth_set_rate_sh7724(struc case 100:/* 100BASE */ sh_eth_modify(ndev, ECMR, ECMR_RTM, ECMR_RTM); break; - default: - break; } } @@ -698,8 +692,6 @@ static void sh_eth_set_rate_sh7757(struc case 100:/* 100BASE */ sh_eth_write(ndev, 1, RTRATE); break; - default: - break; } } @@ -767,8 +759,6 @@ static void sh_eth_set_rate_giga(struct case 1000: /* 1000BASE */ sh_eth_write(ndev, 0x00000020, GECMR); break; - default: - break; } } @@ -2917,8 +2907,6 @@ static const u16 *sh_eth_get_register_of case SH_ETH_REG_FAST_SH3_SH2: reg_offset = sh_eth_offset_fast_sh3_sh2; break; - default: - break; } return reg_offset;