rtl8152_system_suspend defines the variable "ret", but it is not modified
after initialization. So just remove it.
Signed-off-by: zhong jiang <redacted>
---
drivers/net/usb/r8152.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
From: Gustavo A. R. Silva <hidden> Date: 2018-08-09 02:28:59
Hi Zhong,
On 8/8/18 8:39 PM, zhong jiang wrote:
rtl8152_system_suspend defines the variable "ret", but it is not modified
after initialization. So just remove it.
Thanks for working on this.
I wonder if you are using any tool like Coccinelle to spot these sort
of issues. If so, it'd be nice to mention that in the changelog.
The above is important for two reasons, one is to give credit to the people
behind such tools, and the second one is to add support for metrics collection.
Thanks
--
Gustavo
rtl8152_system_suspend defines the variable "ret", but it is not modified
after initialization. So just remove it.
Thanks for working on this.
I wonder if you are using any tool like Coccinelle to spot these sort
of issues. If so, it'd be nice to mention that in the changelog.
Yes, I use the returnval.cocci to spot it. I will remember for next time.
Thanks,
zhong jiang
The above is important for two reasons, one is to give credit to the people
behind such tools, and the second one is to add support for metrics collection.
Thanks
--
Gustavo
rtl8152_system_suspend defines the variable "ret", but it is not modified
after initialization. So just remove it.
Signed-off-by: zhong jiang <redacted>