diff --git a/drivers/staging/vt6656/rf.c b/drivers/staging/vt6656/rf.c index c0edcae55e302d9ad17352c0984493e3bf7154f5..c42cde59f598efe27f8bff760ce94ca20692a177 100644 --- a/drivers/staging/vt6656/rf.c +++ b/drivers/staging/vt6656/rf.c @@ -623,7 +623,6 @@ int vnt_rf_write_embedded(struct vnt_private *priv, u32 data) /* Set Tx power by rate and channel number */ int vnt_rf_setpower(struct vnt_private *priv, u32 rate, u32 channel) { - int ret = true; u8 power = priv->cck_pwr; if (channel == 0) @@ -653,9 +652,7 @@ int vnt_rf_setpower(struct vnt_private *priv, u32 rate, u32 channel) break; } - ret = vnt_rf_set_txpower(priv, power, rate); - - return ret; + return vnt_rf_set_txpower(priv, power, rate); } static u8 vnt_rf_addpower(struct vnt_private *priv)