From patchwork Thu Aug 24 18:32:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Halaney X-Patchwork-Id: 13364566 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 99681C7EE2C for ; Thu, 24 Aug 2023 18:33:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=hw+AtdUI1Bcf8HPRxXw29bdNEVkO7f2je+b8188dw/U=; b=s9qVyxi2zVIHiG g7oBctuKDqD6bOG66XlZ76Zvos5I4s8BCKIz/HjmCxJ4irbRi5697MP3o0OfQSrwyX5Ng47ENi8+k 1yqo1Z+7gEAE9K/NRyxvG6umJXDocMRGaN+MjIJbbp5wYhWki9eKJ5db2bVVlBPJC1XGsUhN4Z2R5 2f7AWc6LBpYO3iXJe9xxvYZmHqT4DKDrC6lIjFkBnRuv+kTsG5fzGSt/6VeP63mYQ9B14CEVwTFS6 0u2a+tubBBZnP7dDd4A/mw0EejRzn2Q5fBa5sGB3xtBIabecaNcsgU8Rx2FqpVZcU49jyPrP+rUd/ phvmOfJt5rrO3ka60iwQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qZF8t-003b5S-2q; Thu, 24 Aug 2023 18:33:15 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qZF8l-003b0j-1T for linux-arm-kernel@lists.infradead.org; Thu, 24 Aug 2023 18:33:08 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1692901986; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=XQSvh9slhSAVrK9RWa2tfsuNvxEUSp0MXiAFYeXPuAw=; b=IhuyK+5N1qpU0uAJsDRNSr6Ycf1HqM8s3wtHbZscAIkmL9lJzDjRzWy57GSf8bQSnsS4WL EQKruUcoUI1JC/TFi96CeQpcWKfMaOIaJPUr4bn4p8x4ycA0q382Bm9CSkCHlk1lwM/NwW eJuFCDSMvtFrwxLtwlbnJj6AXC/CPMk= Received: from mail-qv1-f72.google.com (mail-qv1-f72.google.com [209.85.219.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-670-fN3fY0h6Nqq3kRgWFrFASQ-1; Thu, 24 Aug 2023 14:33:03 -0400 X-MC-Unique: fN3fY0h6Nqq3kRgWFrFASQ-1 Received: by mail-qv1-f72.google.com with SMTP id 6a1803df08f44-64a5264b91eso1512966d6.1 for ; Thu, 24 Aug 2023 11:33:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692901982; x=1693506782; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=XQSvh9slhSAVrK9RWa2tfsuNvxEUSp0MXiAFYeXPuAw=; b=PLoSOYheQRya8AxHZDdpv3HOYQy+p3YifqXa8vzVsKmnk3F1ORM8qGcHlykL9aZxuY sQU+2CZ8PQY3fX3cyaQ7eWEEzlSgrbU7OfC8+e9U1EVAeOKeWcWC8vdQ1dhvgRxXCdNs /3VcVOnpf7+y1cAXtttu6XgHhI3SpuE8Mpm8Wj56CWT7x/nnr/s71O9OBRWJYvquUTIi sn/OKq8HGZcSIs6JgeJP4eX6voCVzc31Uh+4hFG5oDrlkdH54KlgRg8eZUn18n7U+N4q WoLvGMW/k0RmnaaOaJCHJ6IRNsj0Be9l9ht6pyrvUNtdDnzQpLIBKXljfEcuDGsYh+eE KvKw== X-Gm-Message-State: AOJu0Ywh1prqFL7D6igpyVisiYyT45r3J4IUJMfjuNfiMRqTwJ9/Wl0g OiCmAbmurhtN5uvOJ/Hhy5o1HhLqz3eqQIkLGrDT7op1AAr8Ktj11gJFVOBt6l3wyxN7NRRGkbe rk7k0sjr8DvA0OmEF8FRAAlGKCcOuioM16fk= X-Received: by 2002:a0c:a99b:0:b0:63a:5ebc:6e7a with SMTP id a27-20020a0ca99b000000b0063a5ebc6e7amr15574223qvb.31.1692901982710; Thu, 24 Aug 2023 11:33:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFj5ZJm6hpe0krNTRRf2s5iyapXzQ1FpiG0EpY/VpNEjLrDgHOUR63fuY3Iw6CLeMnPKpjAVQ== X-Received: by 2002:a0c:a99b:0:b0:63a:5ebc:6e7a with SMTP id a27-20020a0ca99b000000b0063a5ebc6e7amr15574200qvb.31.1692901982497; Thu, 24 Aug 2023 11:33:02 -0700 (PDT) Received: from [192.168.1.165] ([2600:1700:1ff0:d0e0::37]) by smtp.gmail.com with ESMTPSA id j17-20020a0ceb11000000b0064f77d37798sm4209qvp.5.2023.08.24.11.33.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Aug 2023 11:33:02 -0700 (PDT) From: Andrew Halaney Date: Thu, 24 Aug 2023 13:32:55 -0500 Subject: [PATCH net-next 4/7] net: stmmac: Remove a pointless cast MIME-Version: 1.0 Message-Id: <20230824-stmmac-subsecond-inc-cleanup-v1-4-e0b9f7c18b37@redhat.com> References: <20230824-stmmac-subsecond-inc-cleanup-v1-0-e0b9f7c18b37@redhat.com> In-Reply-To: <20230824-stmmac-subsecond-inc-cleanup-v1-0-e0b9f7c18b37@redhat.com> To: Alexandre Torgue , Jose Abreu , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , Richard Cochran Cc: netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Andrew Halaney X-Mailer: b4 0.12.3 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230824_113307_564853_B5DA9015 X-CRM114-Status: GOOD ( 11.24 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The type is already u64, there's no reason to cast it again. Signed-off-by: Andrew Halaney --- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c index f0e585e6ef76..20ef068b3e6b 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c @@ -859,7 +859,7 @@ int stmmac_init_tstamp_counter(struct stmmac_priv *priv, u32 systime_flags) * where, freq_div_ratio = 1e9ns/sub_second_inc */ temp = div_u64(NSEC_PER_SEC, sub_second_inc); - temp = (u64)(temp << 32); + temp = temp << 32; priv->default_addend = div_u64(temp, priv->plat->clk_ptp_rate); stmmac_config_addend(priv, priv->ptpaddr, priv->default_addend);