Skip to content

Commit

Permalink
rtl8xxxu: remove unused assignment value
Browse files Browse the repository at this point in the history
at first, ret was assigned to zero, but later assigned to
a funciton,so the assignment to zero is no use, which can
simple be removed instead.
  • Loading branch information
kimocoder committed Dec 3, 2021
1 parent a14cd2b commit a301b4c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions rtl8xxxu_8192e.c
Original file line number Diff line number Diff line change
Expand Up @@ -1515,8 +1515,6 @@ static int rtl8192eu_power_on(struct rtl8xxxu_priv *priv)
u32 val32;
int ret;

ret = 0;

val32 = rtl8xxxu_read32(priv, REG_SYS_CFG);
if (val32 & SYS_CFG_SPS_LDO_SEL) {
rtl8xxxu_write8(priv, REG_LDO_SW_CTRL, 0xc3);
Expand Down

0 comments on commit a301b4c

Please sign in to comment.