sunxi: Make bit delay function in H616 DRAM code void
authorJernej Skrabec <jernej.skrabec@gmail.com>
Mon, 10 Apr 2023 08:21:15 +0000 (10:21 +0200)
committerAndre Przywara <andre.przywara@arm.com>
Tue, 11 Apr 2023 23:17:21 +0000 (00:17 +0100)
Mentioned function result is always true and result isn't checked
anyway. Let's make it void.

Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
arch/arm/mach-sunxi/dram_sun50i_h616.c

index 7d24343..3fe4584 100644 (file)
@@ -572,7 +572,7 @@ static bool mctl_phy_write_training(struct dram_para *para)
        return result;
 }
 
-static bool mctl_phy_bit_delay_compensation(struct dram_para *para)
+static void mctl_phy_bit_delay_compensation(struct dram_para *para)
 {
        u32 *ptr;
        int i;
@@ -683,8 +683,6 @@ static bool mctl_phy_bit_delay_compensation(struct dram_para *para)
 
                setbits_le32(SUNXI_DRAM_PHY0_BASE + 0x54, 0x80);
        }
-
-       return true;
 }
 
 static bool mctl_phy_init(struct dram_para *para)