mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 01:10:04 +00:00
staging: rtl8723bs: os_dep: remove two set but not used variables
Fixes gcc '-Wunused-but-set-variable' warning: drivers/staging/rtl8723bs//os_dep/osdep_service.c: In function 'rtw_buf_free': drivers/staging/rtl8723bs//os_dep/osdep_service.c:321:6: warning: variable 'ori_len' set but not used [-Wunused-but-set-variable] drivers/staging/rtl8723bs//os_dep/ioctl_linux.c: In function 'rtw_ioctl_wext_private': drivers/staging/rtl8723bs//os_dep/ioctl_linux.c:4915:6: warning: variable 'num_priv' set but not used [-Wunused-but-set-variable] Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: YueHaibing <yuehaibing@huawei.com> Link: https://lore.kernel.org/r/20190726140959.15008-1-yuehaibing@huawei.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
30833b4b4b
commit
149726d3d7
2 changed files with 0 additions and 6 deletions
|
@ -4912,7 +4912,6 @@ static int rtw_ioctl_wext_private(struct net_device *dev, union iwreq_data *wrq_
|
||||||
s32 k;
|
s32 k;
|
||||||
const iw_handler *priv; /* Private ioctl */
|
const iw_handler *priv; /* Private ioctl */
|
||||||
const struct iw_priv_args *priv_args; /* Private ioctl description */
|
const struct iw_priv_args *priv_args; /* Private ioctl description */
|
||||||
u32 num_priv; /* Number of ioctl */
|
|
||||||
u32 num_priv_args; /* Number of descriptions */
|
u32 num_priv_args; /* Number of descriptions */
|
||||||
iw_handler handler;
|
iw_handler handler;
|
||||||
int temp;
|
int temp;
|
||||||
|
@ -4948,7 +4947,6 @@ static int rtw_ioctl_wext_private(struct net_device *dev, union iwreq_data *wrq_
|
||||||
|
|
||||||
priv = rtw_private_handler;
|
priv = rtw_private_handler;
|
||||||
priv_args = rtw_private_args;
|
priv_args = rtw_private_args;
|
||||||
num_priv = ARRAY_SIZE(rtw_private_handler);
|
|
||||||
num_priv_args = ARRAY_SIZE(rtw_private_args);
|
num_priv_args = ARRAY_SIZE(rtw_private_args);
|
||||||
|
|
||||||
if (num_priv_args == 0) {
|
if (num_priv_args == 0) {
|
||||||
|
|
|
@ -318,13 +318,9 @@ int rtw_change_ifname(struct adapter *padapter, const char *ifname)
|
||||||
|
|
||||||
void rtw_buf_free(u8 **buf, u32 *buf_len)
|
void rtw_buf_free(u8 **buf, u32 *buf_len)
|
||||||
{
|
{
|
||||||
u32 ori_len;
|
|
||||||
|
|
||||||
if (!buf || !buf_len)
|
if (!buf || !buf_len)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
ori_len = *buf_len;
|
|
||||||
|
|
||||||
if (*buf) {
|
if (*buf) {
|
||||||
*buf_len = 0;
|
*buf_len = 0;
|
||||||
kfree(*buf);
|
kfree(*buf);
|
||||||
|
|
Loading…
Reference in a new issue