Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751744AbdF3HTb (ORCPT ); Fri, 30 Jun 2017 03:19:31 -0400 Received: from mail-eopbgr20066.outbound.protection.outlook.com ([40.107.2.66]:5488 "EHLO EUR02-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751565AbdF3HTa (ORCPT ); Fri, 30 Jun 2017 03:19:30 -0400 From: Bogdan Purcareata To: Ruxandra Ioana Radulescu , "gregkh@linuxfoundation.org" CC: "devel@driverdev.osuosl.org" , "linux-kernel@vger.kernel.org" , "agraf@suse.de" , "arnd@arndb.de" , "linux-arm-kernel@lists.infradead.org" , "stuyoder@gmail.com" , Laurentiu Tudor Subject: RE: [PATCH] staging: fsl-dpaa2/eth: Remove dead code Thread-Topic: [PATCH] staging: fsl-dpaa2/eth: Remove dead code Thread-Index: AQHS8PRk7I1FaTR6b0ON5FnEp5kXZaI9AFBQ Date: Fri, 30 Jun 2017 07:19:24 +0000 Message-ID: References: <20170629162546.10372-1-ruxandra.radulescu@nxp.com> In-Reply-To: <20170629162546.10372-1-ruxandra.radulescu@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=none action=none header.from=nxp.com; x-originating-ip: [192.88.146.1] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;AM4PR0401MB1844;7:yh/2arN2M0QvUMRjA9Fd9FgDBjkbaNGmvZQJEdLta2VAGUJvDFHvn2EI0xlajylWfcE6hy9db2/YUMHNzndD7Nz+nm7bX/SZMsmKv8+WjFjo0eiq7WA8whXqN4qfVtOgmaZkbp0Yi6g5vJMWRrgxJ5hBgFBzS1shfpK3sxKPYw77m2vvZaWSWnjajGTTMj4bn484/SM3efvPFN16/F2oYaH4Q4qRdInyx0xNNtA5ustOd23MqARzP3Wcq4K2jGxIEeqmZmas8UjhgSv28q5eL6JKlLYmMPml+yQA+YLu/c8aN6wosrNfUf0UTjZ9R4tVVdRqfV4LfghjS2FdH7/qjUPl9VfgW3ydS154yt2lWQxpVwPARVn2Zv5eVlMFVZQJwEOO3JnsEtY85ZzxK4leB5QGTvIr4c4nRaJ15M3JfOw0Ufl4ZR3ayOsrBmbDn3nm4FqMoH2lPuuE/RndanhEunPBHZeWMtLPXfiyeF0tXHgehIjsbAgPEwrfzOTdw3UPRzGIWv5o4Nnf7OfvI7/2o/fhZDgHthQ0bRckFLR67/RuTsF0R93rBqrr7VTOeaJ9bcWUntNAwV18gB9rnZci2h/fS8ixvr8Y/Z79YWnVjUfRGC8HeIYDAiFdnTzmXRxoSqYlBjVjLUhbHbxPU0+kRSreWz8xgPqFKMot0sHPKAIFhw2kUrezKSAtBVzdsnZGDGyGOJgPbX0hdzOmeZfg6iW7J63VOT+APEFjz2bff1inVwo7wsFlLS7keD0Eq1e7nvsVmjvY2pC/kJwHuF+zuu5LgGE4c3aJmCKXsGQwZjw= x-forefront-antispam-report: SFV:SKI;SCL:-1SFV:NSPM;SFS:(10009020)(6009001)(39400400002)(39450400003)(39850400002)(39840400002)(39860400002)(39410400002)(13464003)(377454003)(5660300001)(25786009)(189998001)(53546010)(478600001)(33656002)(7696004)(53936002)(6246003)(6506006)(86362001)(2501003)(9686003)(305945005)(5250100002)(74316002)(14454004)(4326008)(76176999)(3660700001)(2906002)(50986999)(81166006)(8676002)(7736002)(229853002)(66066001)(3280700002)(38730400002)(39060400002)(8936002)(2950100002)(2900100001)(99286003)(55016002)(6436002)(54356999)(3846002)(6116002)(102836003)(54906002);DIR:OUT;SFP:1101;SCL:1;SRVR:AM4PR0401MB1844;H:DB5PR04MB1240.eurprd04.prod.outlook.com;FPR:;SPF:None;MLV:ovrnspm;PTR:InfoNoRecords;LANG:en; x-ms-office365-filtering-correlation-id: 813bf7b9-0cec-49f2-266b-08d4bf88561f x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254075)(300000503095)(300135400095)(48565401081)(2017052603031)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:AM4PR0401MB1844; x-ms-traffictypediagnostic: AM4PR0401MB1844: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(236129657087228)(9452136761055)(185117386973197)(258649278758335); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(100000703101)(100105400095)(10201501046)(93006095)(93001095)(3002001)(6055026)(6041248)(20161123555025)(20161123558100)(20161123564025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:AM4PR0401MB1844;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:AM4PR0401MB1844; x-forefront-prvs: 0354B4BED2 spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Jun 2017 07:19:24.6172 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR0401MB1844 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.home.local id v5U7Jqnh025498 Content-Length: 1405 Lines: 39 > -----Original Message----- > From: Ioana Radulescu [mailto:ruxandra.radulescu@nxp.com] > Sent: Thursday, June 29, 2017 7:26 PM > To: gregkh@linuxfoundation.org > Cc: devel@driverdev.osuosl.org; linux-kernel@vger.kernel.org; > agraf@suse.de; arnd@arndb.de; linux-arm-kernel@lists.infradead.org; Bogdan > Purcareata ; stuyoder@gmail.com; Laurentiu Tudor > > Subject: [PATCH] staging: fsl-dpaa2/eth: Remove dead code > > All possible values of the switch statement are explicitly > handled, so there's no need to have a default branch. > > Signed-off-by: Ioana Radulescu Acked-by: Bogdan Purcareata > --- > drivers/staging/fsl-dpaa2/ethernet/dpaa2-ethtool.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/staging/fsl-dpaa2/ethernet/dpaa2-ethtool.c > b/drivers/staging/fsl-dpaa2/ethernet/dpaa2-ethtool.c > index 5312edc26f01..031179ab3a22 100644 > --- a/drivers/staging/fsl-dpaa2/ethernet/dpaa2-ethtool.c > +++ b/drivers/staging/fsl-dpaa2/ethernet/dpaa2-ethtool.c > @@ -217,8 +217,6 @@ static void dpaa2_eth_get_ethtool_stats(struct > net_device *net_dev, > case 2: > num_cnt = sizeof(dpni_stats.page_2) / sizeof(u64); > break; > - default: > - break; > } > for (k = 0; k < num_cnt; k++) > *(data + i++) = dpni_stats.raw.counter[k]; > -- > 2.11.0