Skip to content

Commit

Permalink
staging: rtl8192e: Fix smatch warning in rtl_wx.c
Browse files Browse the repository at this point in the history
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: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Larry Finger authored and Greg Kroah-Hartman committed Sep 6, 2011
1 parent 77a0445 commit e25316a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/staging/rtl8192e/rtl_wx.c
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ static int r8192se_wx_set_radio(struct net_device *dev,
if ((*extra != 0) && (*extra != 1)) {
RT_TRACE(COMP_ERR, "%s(): set radio an err value,must 0(radio "
"off) or 1(radio on)\n", __func__);
up(&priv->wx_sem);
return -1;
}
priv->sw_radio_on = *extra;
Expand Down

0 comments on commit e25316a

Please sign in to comment.