mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-30 20:30:32 -04:00
Staging: rtl8192e: Rename variable MaxPeriod
Rename variable MaxPeriod to max_period to fix checkpatch warning Avoid CamelCase. Signed-off-by: Tree Davies <tdavies@darkphysics.net> Link: https://lore.kernel.org/r/20240106055556.430948-6-tdavies@darkphysics.net Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
9ad8d831a0
commit
698888bdbd
@@ -1381,12 +1381,12 @@ static short rtllib_sta_ps_sleep(struct rtllib_device *ieee, u64 *time)
|
||||
if (ieee->bAwakePktSent) {
|
||||
psc->LPSAwakeIntvl = 1;
|
||||
} else {
|
||||
u8 MaxPeriod = 5;
|
||||
u8 max_period = 5;
|
||||
|
||||
if (psc->LPSAwakeIntvl == 0)
|
||||
psc->LPSAwakeIntvl = 1;
|
||||
psc->LPSAwakeIntvl = (psc->LPSAwakeIntvl >=
|
||||
MaxPeriod) ? MaxPeriod :
|
||||
max_period) ? max_period :
|
||||
(psc->LPSAwakeIntvl + 1);
|
||||
}
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user