rtl8188eu: Change "==0" to "== 0"

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
Larry Finger 2015-08-15 13:22:58 -05:00
parent 83488f50f7
commit c137ff21e5
40 changed files with 242 additions and 242 deletions

View file

@ -30,12 +30,12 @@
#define RT_ETH_IS_MULTICAST(_pAddr) ((((u8 *)(_pAddr))[0]&0x01)!=0) /* Is Multicast Address? */
#define RT_ETH_IS_BROADCAST(_pAddr) ( \
((u8 *)(_pAddr))[0]==0xff && \
((u8 *)(_pAddr))[1]==0xff && \
((u8 *)(_pAddr))[2]==0xff && \
((u8 *)(_pAddr))[3]==0xff && \
((u8 *)(_pAddr))[4]==0xff && \
((u8 *)(_pAddr))[5]==0xff ) /* Is Broadcast Address? */
((u8 *)(_pAddr))[0]== 0xff && \
((u8 *)(_pAddr))[1]== 0xff && \
((u8 *)(_pAddr))[2]== 0xff && \
((u8 *)(_pAddr))[3]== 0xff && \
((u8 *)(_pAddr))[4]== 0xff && \
((u8 *)(_pAddr))[5]== 0xff ) /* Is Broadcast Address? */
#endif /* #ifndef __INC_ETHERNET_H */

View file

@ -217,7 +217,7 @@ __inline static void _set_timer(struct timer_list *ptimer,u32 delay_time)
__inline static void _cancel_timer(struct timer_list *ptimer,u8 *bcancelled)
{
del_timer_sync(ptimer);
*bcancelled= true;/* true ==1; false==0 */
*bcancelled= true;/* true ==1; false== 0 */
}
#define RTW_TIMER_HDL_ARGS void *FunctionContext

View file

@ -352,7 +352,7 @@ void rtw_reordering_ctrl_timeout_handler(void *pcontext);
__inline static u8 *get_rxmem(union recv_frame *precvframe)
{
/* always return rx_head... */
if (precvframe==NULL)
if (precvframe== NULL)
return NULL;
return precvframe->u.hdr.rx_head;
@ -369,7 +369,7 @@ __inline static u8 *get_recvframe_data(union recv_frame *precvframe)
{
/* alwasy return rx_data */
if (precvframe==NULL)
if (precvframe== NULL)
return NULL;
return precvframe->u.hdr.rx_data;
@ -386,7 +386,7 @@ __inline static u8 *recvframe_push(union recv_frame *precvframe, sint sz)
* start. rx_data must be still larger than rx_head, after pushing.
*/
if (precvframe==NULL)
if (precvframe== NULL)
return NULL;
@ -411,7 +411,7 @@ __inline static u8 *recvframe_pull(union recv_frame *precvframe, sint sz)
/* used for extract sz bytes from rx_data, update rx_data and return the updated rx_data to the caller */
if (precvframe==NULL)
if (precvframe== NULL)
return NULL;
@ -437,7 +437,7 @@ __inline static u8 *recvframe_put(union recv_frame *precvframe, sint sz)
/* after putting, rx_tail must be still larger than rx_end. */
unsigned char * prev_rx_tail;
if (precvframe==NULL)
if (precvframe== NULL)
return NULL;
prev_rx_tail = precvframe->u.hdr.rx_tail;
@ -465,7 +465,7 @@ __inline static u8 *recvframe_pull_tail(union recv_frame *precvframe, sint sz)
/* used for extract sz bytes from rx_end, update rx_end and return the updated rx_end to the caller */
/* after pulling, rx_end must be still larger than rx_data. */
if (precvframe==NULL)
if (precvframe== NULL)
return NULL;
precvframe->u.hdr.rx_tail -= sz;
@ -488,7 +488,7 @@ __inline static unsigned char *get_rxbuf_desc(union recv_frame *precvframe)
{
unsigned char *buf_desc;
if (precvframe==NULL)
if (precvframe== NULL)
return NULL;
return buf_desc;
}

View file

@ -30,7 +30,7 @@
#define NUM_ACL 16
/* if mode ==0, then the sta is allowed once the addr is hit. */
/* if mode == 0, then the sta is allowed once the addr is hit. */
/* if mode ==1, then the sta is rejected once the addr is non-hit. */
struct rtw_wlan_acl_node {
struct list_head list;

View file

@ -1052,7 +1052,7 @@ enum P2P_PS_MODE {
#define WFD_DEVINFO_PC_TDLS 0x0080
#define WFD_DEVINFO_HDCP_SUPPORT 0x0100
#define IP_MCAST_MAC(mac) ((mac[0]==0x01)&&(mac[1]==0x00)&&(mac[2]==0x5e))
#define ICMPV6_MCAST_MAC(mac) ((mac[0]==0x33)&&(mac[1]==0x33)&&(mac[2]!=0xff))
#define IP_MCAST_MAC(mac) ((mac[0]== 0x01)&&(mac[1]== 0x00)&&(mac[2]== 0x5e))
#define ICMPV6_MCAST_MAC(mac) ((mac[0]== 0x33)&&(mac[1]== 0x33)&&(mac[2]!=0xff))
#endif /* _WIFI_H_ */