Commit e25316a0 authored by Larry Finger's avatar Larry Finger Committed by Greg Kroah-Hartman

staging: rtl8192e: Fix smatch warning in rtl_wx.c

Smatch reports the following warning:

  CHECK   drivers/staging/rtl8192e/rtl_wx.c

drivers/staging/rtl8192e/rtl_wx.c +262 r8192se_wx_set_radio(16) warn: inconsistent returns sem:&priv->wx_sem: locked (258) unlocked (262)
Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 77a04453
...@@ -255,6 +255,7 @@ static int r8192se_wx_set_radio(struct net_device *dev, ...@@ -255,6 +255,7 @@ static int r8192se_wx_set_radio(struct net_device *dev,
if ((*extra != 0) && (*extra != 1)) { if ((*extra != 0) && (*extra != 1)) {
RT_TRACE(COMP_ERR, "%s(): set radio an err value,must 0(radio " RT_TRACE(COMP_ERR, "%s(): set radio an err value,must 0(radio "
"off) or 1(radio on)\n", __func__); "off) or 1(radio on)\n", __func__);
up(&priv->wx_sem);
return -1; return -1;
} }
priv->sw_radio_on = *extra; priv->sw_radio_on = *extra;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment