Skip to content

Commit 5315663

Browse files
treedaviesgregkh
authored andcommitted
Staging: rtl8192e: Rename variable bInitState
Rename variable bInitState to init_state to fix checkpatch warning Avoid CamelCase. Signed-off-by: Tree Davies <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 6a20007 commit 5315663

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

drivers/staging/rtl8192e/rtllib.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1677,8 +1677,8 @@ void rtllib_sta_ps_send_pspoll_frame(struct rtllib_device *ieee);
16771677
void rtllib_start_protocol(struct rtllib_device *ieee);
16781678
void rtllib_stop_protocol(struct rtllib_device *ieee);
16791679

1680-
void rtllib_EnableNetMonitorMode(struct net_device *dev, bool bInitState);
1681-
void rtllib_DisableNetMonitorMode(struct net_device *dev, bool bInitState);
1680+
void rtllib_EnableNetMonitorMode(struct net_device *dev, bool init_state);
1681+
void rtllib_DisableNetMonitorMode(struct net_device *dev, bool init_state);
16821682

16831683
void rtllib_softmac_stop_protocol(struct rtllib_device *ieee);
16841684
void rtllib_softmac_start_protocol(struct rtllib_device *ieee);

drivers/staging/rtl8192e/rtllib_softmac.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -349,26 +349,26 @@ static inline struct sk_buff *rtllib_probe_req(struct rtllib_device *ieee)
349349

350350
/* Enables network monitor mode, all rx packets will be received. */
351351
void rtllib_EnableNetMonitorMode(struct net_device *dev,
352-
bool bInitState)
352+
bool init_state)
353353
{
354354
struct rtllib_device *ieee = netdev_priv_rsl(dev);
355355

356356
netdev_info(dev, "========>Enter Monitor Mode\n");
357357

358-
ieee->AllowAllDestAddrHandler(dev, true, !bInitState);
358+
ieee->AllowAllDestAddrHandler(dev, true, !init_state);
359359
}
360360

361361
/* Disables network monitor mode. Only packets destinated to
362362
* us will be received.
363363
*/
364364
void rtllib_DisableNetMonitorMode(struct net_device *dev,
365-
bool bInitState)
365+
bool init_state)
366366
{
367367
struct rtllib_device *ieee = netdev_priv_rsl(dev);
368368

369369
netdev_info(dev, "========>Exit Monitor Mode\n");
370370

371-
ieee->AllowAllDestAddrHandler(dev, false, !bInitState);
371+
ieee->AllowAllDestAddrHandler(dev, false, !init_state);
372372
}
373373

374374
static void rtllib_send_probe(struct rtllib_device *ieee)

0 commit comments

Comments
 (0)