From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 33F34C43465 for ; Mon, 21 Sep 2020 11:41:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 059A520EDD for ; Mon, 21 Sep 2020 11:41:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726654AbgIULlK (ORCPT ); Mon, 21 Sep 2020 07:41:10 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:39190 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726470AbgIULlG (ORCPT ); Mon, 21 Sep 2020 07:41:06 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 1A1931C0B7A; Mon, 21 Sep 2020 13:41:04 +0200 (CEST) Date: Mon, 21 Sep 2020 13:41:03 +0200 From: Pavel Machek To: eranbe@mellanox.com, lariel@mellanox.com, saeedm@mellanox.com, saeedm@nvidia.com, leon@kernel.org, davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] net/mlx5: remove unreachable return Message-ID: <20200921114103.GA21071@duo.ucw.cz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ikeVEW9yuYc//A+q" Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org --ikeVEW9yuYc//A+q Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable The last return statement is unreachable code. I'm not sure if it will provoke any warnings, but it looks ugly. =20 Signed-off-by: Pavel Machek (CIP) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c b/drivers/= net/ethernet/mellanox/mlx5/core/lib/clock.c index 2d55b7c22c03..a804f92ccf23 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c @@ -431,8 +431,6 @@ static int mlx5_ptp_verify(struct ptp_clock_info *ptp, = unsigned int pin, default: return -EOPNOTSUPP; } - - return -EOPNOTSUPP; } =20 static const struct ptp_clock_info mlx5_ptp_clock_info =3D { --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --ikeVEW9yuYc//A+q Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCX2iRTwAKCRAw5/Bqldv6 8gI9AKCEv/XK+xGPjWP3jMGNJxrsc8FO+gCgu0sAJX21FBxsJt3eSOtpdEO80WI= =6huk -----END PGP SIGNATURE----- --ikeVEW9yuYc//A+q--