diff options
author | Arnd Bergmann <arnd@arndb.de> | 2018-01-18 14:19:58 +0100 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2018-01-18 15:45:57 +0100 |
commit | 7b7c1763725bfdb195763c3017a21ce785251d44 (patch) | |
tree | 0c596646dd79fc256df562c9c5955ff93aa106bb /drivers/phy | |
parent | phy: brcm-sata: fix semicolon.cocci warnings (diff) | |
download | linux-7b7c1763725bfdb195763c3017a21ce785251d44.tar.xz linux-7b7c1763725bfdb195763c3017a21ce785251d44.zip |
phy: brcm-sata: remove unused variable
The newly introduced calibrate function has a variable
that has never been used and needs to be removed to avoid
this harmless warning:
drivers/phy/broadcom/phy-brcm-sata.c: In function 'brcm_stb_sata_calibrate':
drivers/phy/broadcom/phy-brcm-sata.c:514:24: error: unused variable 'priv' [-Werror=unused-variable]
Fixes: 3e507769d15e ("phy: brcm-sata: Implement calibrate callback")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'drivers/phy')
-rw-r--r-- | drivers/phy/broadcom/phy-brcm-sata.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/phy/broadcom/phy-brcm-sata.c b/drivers/phy/broadcom/phy-brcm-sata.c index 5dd9ebeac750..8708ea3b4d6d 100644 --- a/drivers/phy/broadcom/phy-brcm-sata.c +++ b/drivers/phy/broadcom/phy-brcm-sata.c @@ -511,7 +511,6 @@ static int brcm_sata_phy_init(struct phy *phy) static void brcm_stb_sata_calibrate(struct brcm_sata_port *port) { void __iomem *base = brcm_sata_pcb_base(port); - struct brcm_sata_phy *priv = port->phy_priv; u32 tmp = BIT(8); brcm_sata_phy_wr(base, RXPMD_REG_BANK, RXPMD_RX_FREQ_MON_CONTROL1, |