mt76: fix some checkpatch warnings
This fixes the following checkpatch warnings: CHECK: Alignment should match open parenthesis CHECK: No space is necessary after a cast Signed-off-by: Ryder Lee <ryder.lee@mediatek.com> Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
#include <linux/bitfield.h>
|
||||
|
||||
#define MT76_INCR(_var, _size) \
|
||||
_var = (((_var) + 1) % _size)
|
||||
(_var = (((_var) + 1) % (_size)))
|
||||
|
||||
int mt76_wcid_alloc(unsigned long *mask, int size);
|
||||
|
||||
@@ -25,7 +25,7 @@ mt76_wcid_free(unsigned long *mask, int idx)
|
||||
static inline void
|
||||
mt76_skb_set_moredata(struct sk_buff *skb, bool enable)
|
||||
{
|
||||
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data;
|
||||
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
|
||||
|
||||
if (enable)
|
||||
hdr->frame_control |= cpu_to_le16(IEEE80211_FCTL_MOREDATA);
|
||||
|
Reference in New Issue
Block a user