summaryrefslogtreecommitdiffstats
path: root/drivers/staging/vt6655/rxtx.c
diff options
context:
space:
mode:
authorAya Mahfouz2015-02-27 13:51:29 +0100
committerGreg Kroah-Hartman2015-03-02 00:11:08 +0100
commit0c596a31ec3c3db2fe5ee78e9f46ae2e0bcb9aa0 (patch)
tree4e2520522feb668d52853f92d4d60d7a7f3cbefc /drivers/staging/vt6655/rxtx.c
parentStaging: vt6655: Fix do not use C99 // comments (diff)
downloadkernel-qcow2-linux-0c596a31ec3c3db2fe5ee78e9f46ae2e0bcb9aa0.tar.gz
kernel-qcow2-linux-0c596a31ec3c3db2fe5ee78e9f46ae2e0bcb9aa0.tar.xz
kernel-qcow2-linux-0c596a31ec3c3db2fe5ee78e9f46ae2e0bcb9aa0.zip
staging: vt6655: remove unused variable
This patch removes a variable that was simply used to store the return value of a function call before returning it. The issue was detected and resolved using the following coccinelle script: @@ identifier len,f; @@ -int len; ... when != len when strict -len = +return f(...); -return len; Signed-off-by: Aya Mahfouz <mahfouz.saif.elyazal@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vt6655/rxtx.c')
-rw-r--r--drivers/staging/vt6655/rxtx.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/staging/vt6655/rxtx.c b/drivers/staging/vt6655/rxtx.c
index 07ce3fd88e70..ac8c8b5a1450 100644
--- a/drivers/staging/vt6655/rxtx.c
+++ b/drivers/staging/vt6655/rxtx.c
@@ -1505,8 +1505,6 @@ int vnt_beacon_make(struct vnt_private *priv, struct ieee80211_vif *vif)
int vnt_beacon_enable(struct vnt_private *priv, struct ieee80211_vif *vif,
struct ieee80211_bss_conf *conf)
{
- int ret;
-
VNSvOutPortB(priv->PortOffset + MAC_REG_TFTCTL, TFTCTL_TSFCNTRST);
VNSvOutPortB(priv->PortOffset + MAC_REG_TFTCTL, TFTCTL_TSFCNTREN);
@@ -1515,7 +1513,5 @@ int vnt_beacon_enable(struct vnt_private *priv, struct ieee80211_vif *vif,
CARDbSetBeaconPeriod(priv, conf->beacon_int);
- ret = vnt_beacon_make(priv, vif);
-
- return ret;
+ return vnt_beacon_make(priv, vif);
}