From patchwork Sun Feb 14 19:56:03 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 8302981 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 F3D2F9F372 for ; Sun, 14 Feb 2016 19:56:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 58451201F5 for ; Sun, 14 Feb 2016 19:56:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 726C2201F2 for ; Sun, 14 Feb 2016 19:56:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751440AbcBNT4J (ORCPT ); Sun, 14 Feb 2016 14:56:09 -0500 Received: from mail-lb0-f181.google.com ([209.85.217.181]:32987 "EHLO mail-lb0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751473AbcBNT4I (ORCPT ); Sun, 14 Feb 2016 14:56:08 -0500 Received: by mail-lb0-f181.google.com with SMTP id x4so68827005lbm.0 for ; Sun, 14 Feb 2016 11:56:06 -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=t8BZlv1xaCfcs+riwIXBudJYPrVgZhTj06SVtUtW1Ng=; b=GchDzlvTSMmoD5ffaNo4Ckv4Nmxri86sgG3PIek4WKmHbe1HO0BWG+f10DF1DTXEr4 81Msm8Talw5SdtVN2SC2zYMliZQ5uF1XnUoa6epXN0UGqqabXukPUrocVjt3N+f+K/AT Uv8A6rtSUpADepvQGgNQpso03crnnpYt5H4b0dd403lYUZOzBlQFDHdjIR/mVuII4inS OdiEVNdCy1Wp5aBmM/PEWUnOENkZgXoOj+F55j8nim2Z0MttKqD0RYhoYJtpdk/qSOo0 zZ8iQqEzicdQYm1f87Ar0lmIW/xqdmf4TKfhcbE2hkkp698g+mhmNG8OSV3ypf6JjK8B Emzw== 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=t8BZlv1xaCfcs+riwIXBudJYPrVgZhTj06SVtUtW1Ng=; b=dqsOADjVfII+EfW+VuCqzRuj1pGQGTyeHSbDgAijQAeW81cgT/DDhHdHcJ9cdESFxq rF4Ddr8BQjo5NTekkJSXTC1q6kiAx54WjjJclLxQ6YOXoALHaQ9QsN+Sm7Jcz1RdvxZT PzxOLShxfw140Fq+OLnREWZxlOBGHjaYIt11tQq6mN/1UXWrskU0h3S+s3gsi3iOEwxt 1hC2qUrsfg/ldy2XB8O+DO7S2PdOMUayh7bUQgi/b8fHznavfZoK2fyiHLU4j4M3bdc/ O5tGcbLOG16z6kOOKkkFgucCnDwMv6/z9ITm9c0UshHxKrZ6R+VN/Bv/bU7R6rSrMxKO YqLA== X-Gm-Message-State: AG10YORmiG7Fi6eqQKjS8jj7luAOXVTCTMMcW0n08i2CHbgamxcODf/2gxdhjMZRf+sQRA== X-Received: by 10.112.140.41 with SMTP id rd9mr5133404lbb.138.1455479765857; Sun, 14 Feb 2016 11:56:05 -0800 (PST) Received: from wasted.cogentembedded.com ([31.173.84.158]) by smtp.gmail.com with ESMTPSA id h198sm3224408lfb.47.2016.02.14.11.56.04 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 14 Feb 2016 11:56:05 -0800 (PST) From: Sergei Shtylyov To: netdev@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org Subject: [PATCH 1/2] ravb: kill useless *switch* defaults Date: Sun, 14 Feb 2016 22:56:03 +0300 Message-ID: <42828566.vpINptsK4T@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=ham 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 has the *default* case doing nothing in the *switch* statement with an integer expression -- remove it. Signed-off-by: Sergei Shtylyov Reviewed-by: Simon Horman --- drivers/net/ethernet/renesas/ravb_main.c | 2 -- 1 file changed, 2 deletions(-) Index: net-next/drivers/net/ethernet/renesas/ravb_main.c =================================================================== --- net-next.orig/drivers/net/ethernet/renesas/ravb_main.c +++ net-next/drivers/net/ethernet/renesas/ravb_main.c @@ -92,8 +92,6 @@ static void ravb_set_rate(struct net_dev case 1000: /* 1000BASE */ ravb_write(ndev, GECMR_SPEED_1000, GECMR); break; - default: - break; } }