staging: rtl8192u: remove unecessary variable
This patch removes unncessary variable in file r8192U_core.c using Coccinelle. Semantic patch for this is as follows : @@ identifier ret; @@ -int ret = 0; ... when != ret when strict -return ret; +return 0; Signed-off-by: Tapasweni Pathak <tapaswenipathak@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
a579c97823
commit
bfcc6be5bc
|
@ -1911,19 +1911,18 @@ static int rtl8192_handle_beacon(struct net_device *dev,
|
||||||
static int rtl8192_qos_association_resp(struct r8192_priv *priv,
|
static int rtl8192_qos_association_resp(struct r8192_priv *priv,
|
||||||
struct ieee80211_network *network)
|
struct ieee80211_network *network)
|
||||||
{
|
{
|
||||||
int ret = 0;
|
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
u32 size = sizeof(struct ieee80211_qos_parameters);
|
u32 size = sizeof(struct ieee80211_qos_parameters);
|
||||||
int set_qos_param = 0;
|
int set_qos_param = 0;
|
||||||
|
|
||||||
if ((priv == NULL) || (network == NULL))
|
if ((priv == NULL) || (network == NULL))
|
||||||
return ret;
|
return 0;
|
||||||
|
|
||||||
if (priv->ieee80211->state != IEEE80211_LINKED)
|
if (priv->ieee80211->state != IEEE80211_LINKED)
|
||||||
return ret;
|
return 0;
|
||||||
|
|
||||||
if ((priv->ieee80211->iw_mode != IW_MODE_INFRA))
|
if ((priv->ieee80211->iw_mode != IW_MODE_INFRA))
|
||||||
return ret;
|
return 0;
|
||||||
|
|
||||||
spin_lock_irqsave(&priv->ieee80211->lock, flags);
|
spin_lock_irqsave(&priv->ieee80211->lock, flags);
|
||||||
if (network->flags & NETWORK_HAS_QOS_PARAMETERS) {
|
if (network->flags & NETWORK_HAS_QOS_PARAMETERS) {
|
||||||
|
@ -1952,7 +1951,7 @@ static int rtl8192_qos_association_resp(struct r8192_priv *priv,
|
||||||
queue_work(priv->priv_wq, &priv->qos_activate);
|
queue_work(priv->priv_wq, &priv->qos_activate);
|
||||||
|
|
||||||
|
|
||||||
return ret;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue