From patchwork Tue Apr 13 07:55:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Marek_Beh=C3=BAn?= X-Patchwork-Id: 12199575 X-Patchwork-Delegate: kuba@kernel.org 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=-19.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham 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 6F2F8C433ED for ; Tue, 13 Apr 2021 07:56:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 54574611F2 for ; Tue, 13 Apr 2021 07:56:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237661AbhDMH44 (ORCPT ); Tue, 13 Apr 2021 03:56:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:42398 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236920AbhDMH4n (ORCPT ); Tue, 13 Apr 2021 03:56:43 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 036A9613C0; Tue, 13 Apr 2021 07:56:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1618300584; bh=AwDdzkVBb4/+xSJ8nEvoOEcIgT6LDFbcCuOBHfusSlE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=k9fdsu9oWsmauJHDetJdInepp2iM3zSBLeiDt9RfcHCugGv0Np8FOFuOEJXzS1Aty cQU2M8LZxqGKyiQW+Ke+Sb2qq+QSsgfhHjrRVVvLuGbZzwabde2EW5fTtS3GwcrjzS WppAaU6MM4cCcRl1MiyzscM9iXafKFvcIhwZUKmZxjg5IMTk3UnKA0/8Y+EAr+mumy vyWEAVRLfN6ds7H/6ttDO20JuVf/M0cC2vQBEjixsQ7sl4wWESGGfzmZ3Ig0n3+19K YksyZ3vgC9uvgOTkuADlHZLAftD03O5unAh2iaVroeI9XzNyYOvPVu/1kNi7g9nnBQ OCE3zBMEWY/HA== From: =?utf-8?q?Marek_Beh=C3=BAn?= To: netdev@vger.kernel.org, Andrew Lunn Cc: "David S . Miller" , Russell King , kuba@kernel.org, =?utf-8?q?Marek?= =?utf-8?q?_Beh=C3=BAn?= Subject: [PATCH net-next 3/5] net: phy: marvell: use assignment by bitwise AND operator Date: Tue, 13 Apr 2021 09:55:36 +0200 Message-Id: <20210413075538.30175-4-kabel@kernel.org> X-Mailer: git-send-email 2.26.3 In-Reply-To: <20210413075538.30175-1-kabel@kernel.org> References: <20210413075538.30175-1-kabel@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Use the &= operator instead of ret = ret & ... Signed-off-by: Marek BehĂșn Reviewed-by: Andrew Lunn --- drivers/net/phy/marvell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/phy/marvell.c b/drivers/net/phy/marvell.c index bae2a225b550..9eb65898da83 100644 --- a/drivers/net/phy/marvell.c +++ b/drivers/net/phy/marvell.c @@ -2352,7 +2352,7 @@ static int m88e6390_get_temp(struct phy_device *phydev, long *temp) if (ret < 0) goto error; - ret = ret & ~MII_88E6390_MISC_TEST_TEMP_SENSOR_MASK; + ret &= ~MII_88E6390_MISC_TEST_TEMP_SENSOR_MASK; ret |= MII_88E6390_MISC_TEST_TEMP_SENSOR_ENABLE_SAMPLE_1S; ret = __phy_write(phydev, MII_88E6390_MISC_TEST, ret);