[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAKXHbyP10uukO7Y54OBTvWPUZ6RiVpG=8BcppzxfnJOMg+Mobw@mail.gmail.com>
Date: Mon, 2 Feb 2015 00:17:32 +0100
From: Rickard Strandqvist <rickard_strandqvist@...ctrumdigital.se>
To: Jes Sorensen <Jes.Sorensen@...hat.com>
Cc: Larry Finger <Larry.Finger@...inger.net>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Joe Perches <joe@...ches.com>,
"linux-wireless@...r.kernel.org" <linux-wireless@...r.kernel.org>,
"devel@...verdev.osuosl.org" <devel@...verdev.osuosl.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] staging: rtl8723au: hal: usb_ops_linux: Removed variables
that is never used
2015-02-02 0:01 GMT+01:00 Jes Sorensen <Jes.Sorensen@...hat.com>:
> Rickard Strandqvist <rickard_strandqvist@...ctrumdigital.se> writes:
>> Variable was assigned a value that was never used.
>> I have also removed all the code that thereby serves no purpose.
>>
>> This was found using a static code analysis program called cppcheck
>>
>> Signed-off-by: Rickard Strandqvist <rickard_strandqvist@...ctrumdigital.se>
>> ---
>> drivers/staging/rtl8723au/hal/usb_ops_linux.c | 9 +++------
>> 1 file changed, 3 insertions(+), 6 deletions(-)
>>
>> diff --git a/drivers/staging/rtl8723au/hal/usb_ops_linux.c b/drivers/staging/rtl8723au/hal/usb_ops_linux.c
>> index a6d16ad..4ae0a8a 100644
>> --- a/drivers/staging/rtl8723au/hal/usb_ops_linux.c
>> +++ b/drivers/staging/rtl8723au/hal/usb_ops_linux.c
>> @@ -26,11 +26,10 @@ u8 rtl8723au_read8(struct rtw_adapter *padapter, u16 addr)
>> {
>> struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(padapter);
>> struct usb_device *udev = pdvobjpriv->pusbdev;
>> - int len;
>> u8 data;
>>
>> mutex_lock(&pdvobjpriv->usb_vendor_req_mutex);
>> - len = usb_control_msg(udev, usb_rcvctrlpipe(udev, 0),
>> + usb_control_msg(udev, usb_rcvctrlpipe(udev, 0),
>> REALTEK_USB_VENQT_CMD_REQ, REALTEK_USB_VENQT_READ,
>> addr, 0, &pdvobjpriv->usb_buf.val8, sizeof(data),
>> RTW_USB_CONTROL_MSG_TIMEOUT);
>> @@ -45,11 +44,10 @@ u16 rtl8723au_read16(struct rtw_adapter *padapter, u16 addr)
>> {
>> struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(padapter);
>> struct usb_device *udev = pdvobjpriv->pusbdev;
>> - int len;
>> u16 data;
>>
>> mutex_lock(&pdvobjpriv->usb_vendor_req_mutex);
>> - len = usb_control_msg(udev, usb_rcvctrlpipe(udev, 0),
>> + usb_control_msg(udev, usb_rcvctrlpipe(udev, 0),
>> REALTEK_USB_VENQT_CMD_REQ, REALTEK_USB_VENQT_READ,
>> addr, 0, &pdvobjpriv->usb_buf.val16, sizeof(data),
>> RTW_USB_CONTROL_MSG_TIMEOUT);
>> @@ -64,11 +62,10 @@ u32 rtl8723au_read32(struct rtw_adapter *padapter, u16 addr)
>> {
>> struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(padapter);
>> struct usb_device *udev = pdvobjpriv->pusbdev;
>> - int len;
>> u32 data;
>>
>> mutex_lock(&pdvobjpriv->usb_vendor_req_mutex);
>> - len = usb_control_msg(udev, usb_rcvctrlpipe(udev, 0),
>> + usb_control_msg(udev, usb_rcvctrlpipe(udev, 0),
>> REALTEK_USB_VENQT_CMD_REQ, REALTEK_USB_VENQT_READ,
>> addr, 0, &pdvobjpriv->usb_buf.val32, sizeof(data),
>> RTW_USB_CONTROL_MSG_TIMEOUT);
>
> Again, fix the formatting if you want to make this change.
>
> NACK
>
> Jes
Hi
I am sorry, please ignore this.
I will not send any more patches.
Kind regards
Rickard Strandqvist
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists