mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-28 07:04:00 +08:00
staging: rtl8188eu: add spaces around operators in os_intfs.c
Add spaces around '+', '<<' and '*' to follow kernel coding style. Reported by checkpatch. Signed-off-by: Michael Straube <straube.linux@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
58d37ddf75
commit
9435bbd4b9
@ -267,11 +267,11 @@ u16 rtw_recv_select_queue(struct sk_buff *skb)
|
||||
u32 priority;
|
||||
u8 *pdata = skb->data;
|
||||
|
||||
memcpy(ð_type, pdata+(ETH_ALEN<<1), 2);
|
||||
memcpy(ð_type, pdata + (ETH_ALEN << 1), 2);
|
||||
|
||||
switch (eth_type) {
|
||||
case htons(ETH_P_IP):
|
||||
piphdr = (struct iphdr *)(pdata+ETH_HLEN);
|
||||
piphdr = (struct iphdr *)(pdata + ETH_HLEN);
|
||||
dscp = piphdr->tos & 0xfc;
|
||||
priority = dscp >> 5;
|
||||
break;
|
||||
@ -323,7 +323,7 @@ struct net_device *rtw_init_netdev(struct adapter *old_padapter)
|
||||
padapter->pnetdev = pnetdev;
|
||||
DBG_88E("register rtw_netdev_ops to netdev_ops\n");
|
||||
pnetdev->netdev_ops = &rtw_netdev_ops;
|
||||
pnetdev->watchdog_timeo = HZ*3; /* 3 second timeout */
|
||||
pnetdev->watchdog_timeo = HZ * 3; /* 3 second timeout */
|
||||
pnetdev->wireless_handlers = (struct iw_handler_def *)&rtw_handlers_def;
|
||||
|
||||
loadparam(padapter, pnetdev);
|
||||
|
Loading…
Reference in New Issue
Block a user