]> git.baikalelectronics.ru Git - kernel.git/commit
staging: rtl8188eu: remove useless variable rtw_AcceptAddbaReq
authorLuca Ceresoli <luca@lucaceresoli.net>
Wed, 2 Dec 2015 21:54:03 +0000 (22:54 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Feb 2016 02:58:31 +0000 (18:58 -0800)
commit529ee45059b84184471babc9baeb28f13e009915
tree304090ee4133f3aef06308cf700edb41498e54a6
parent2332a0a4a28cff7888f42d2c4f0e8c809d92510d
staging: rtl8188eu: remove useless variable rtw_AcceptAddbaReq

rtw_AcceptAddbaReq is a static variable, it is set once and never
modified. It is referenced only once, to assign its value to a member
of struct registry_priv with practically the same name.

Get rid of the variable, and move the meaningful part of the comment
near the declaration of the relevant field of struct registry_priv.

Raises a new checkpatch issue, which is fixed in a later commit:
  CHECK: Avoid CamelCase: <bAcceptAddbaReq>

Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Cc: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/include/drv_types.h
drivers/staging/rtl8188eu/os_dep/os_intfs.c