staging: rtl8192e: Rename sCrcLng
Rename constant sCrcLng to S_CRC_LEN to avoid CamelCase which is not accepted by checkpatch. Use S_CRC_LEN instead of fix value with comment to improve readability. Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> Link: https://lore.kernel.org/r/b0139a958123881fd04b60110a6889f726d943cc.1675003608.git.philipp.g.hortmann@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
59f6f02ead
commit
e38e65eb18
@ -1827,7 +1827,7 @@ bool rtl92e_get_rx_stats(struct net_device *dev, struct rtllib_rx_stats *stats,
|
||||
stats->RxIs40MHzPacket = pDrvInfo->BW;
|
||||
|
||||
_rtl92e_translate_rx_signal_stats(dev, skb, stats, pdesc, pDrvInfo);
|
||||
skb_trim(skb, skb->len - 4/*sCrcLng*/);
|
||||
skb_trim(skb, skb->len - S_CRC_LEN);
|
||||
|
||||
|
||||
stats->packetlength = stats->Length-4;
|
||||
|
@ -1906,7 +1906,7 @@ static void _rtl92e_rx_normal(struct net_device *dev)
|
||||
skb_put(skb, pdesc->Length);
|
||||
skb_reserve(skb, stats.RxDrvInfoSize +
|
||||
stats.RxBufShift);
|
||||
skb_trim(skb, skb->len - 4/*sCrcLng*/);
|
||||
skb_trim(skb, skb->len - S_CRC_LEN);
|
||||
rtllib_hdr = (struct rtllib_hdr_1addr *)skb->data;
|
||||
if (!is_multicast_ether_addr(rtllib_hdr->addr1)) {
|
||||
/* unicast packet */
|
||||
|
@ -94,7 +94,7 @@
|
||||
#define CCK_TX_BB_GAIN_TABLE_LEN 23
|
||||
|
||||
#define CHANNEL_PLAN_LEN 10
|
||||
#define sCrcLng 4
|
||||
#define S_CRC_LEN 4
|
||||
|
||||
#define NIC_SEND_HANG_THRESHOLD_NORMAL 4
|
||||
#define NIC_SEND_HANG_THRESHOLD_POWERSAVE 8
|
||||
|
Loading…
x
Reference in New Issue
Block a user