diff options
author | Georgiana Rodica Chelu <georgiana.chelu93@gmail.com> | 2016-09-28 16:33:02 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-10-02 11:26:41 -0400 |
commit | 7d7be350073e5a27ff5ed73b3dc31e1d2cb7d573 (patch) | |
tree | 271774ce1d5a1a7ffdd214446bacda4620e06fc7 | |
parent | 777c5e94c163e07ad8676ac37cc8e20301f63f80 (diff) |
staging: rtl8188eu: core: rtw_xmit: Move constant of the right side
Constants should be on the right side of comparisons.
Issue found by checkpatch.pl script.
Signed-off-by: Georgiana Rodica Chelu <georgiana.chelu93@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/rtl8188eu/core/rtw_xmit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/rtl8188eu/core/rtw_xmit.c b/drivers/staging/rtl8188eu/core/rtw_xmit.c index 1d2817b3a5df..139289975365 100644 --- a/drivers/staging/rtl8188eu/core/rtw_xmit.c +++ b/drivers/staging/rtl8188eu/core/rtw_xmit.c | |||
@@ -451,14 +451,14 @@ static s32 update_attrib(struct adapter *padapter, struct sk_buff *pkt, struct p | |||
451 | 451 | ||
452 | pattrib->pktlen = pktfile.pkt_len; | 452 | pattrib->pktlen = pktfile.pkt_len; |
453 | 453 | ||
454 | if (ETH_P_IP == pattrib->ether_type) { | 454 | if (pattrib->ether_type == ETH_P_IP) { |
455 | /* The following is for DHCP and ARP packet, we use cck1M to tx these packets and let LPS awake some time */ | 455 | /* The following is for DHCP and ARP packet, we use cck1M to tx these packets and let LPS awake some time */ |
456 | /* to prevent DHCP protocol fail */ | 456 | /* to prevent DHCP protocol fail */ |
457 | u8 tmp[24]; | 457 | u8 tmp[24]; |
458 | _rtw_pktfile_read(&pktfile, &tmp[0], 24); | 458 | _rtw_pktfile_read(&pktfile, &tmp[0], 24); |
459 | pattrib->dhcp_pkt = 0; | 459 | pattrib->dhcp_pkt = 0; |
460 | if (pktfile.pkt_len > 282) {/* MINIMUM_DHCP_PACKET_SIZE) { */ | 460 | if (pktfile.pkt_len > 282) {/* MINIMUM_DHCP_PACKET_SIZE) { */ |
461 | if (ETH_P_IP == pattrib->ether_type) {/* IP header */ | 461 | if (pattrib->ether_type == ETH_P_IP) {/* IP header */ |
462 | if (((tmp[21] == 68) && (tmp[23] == 67)) || | 462 | if (((tmp[21] == 68) && (tmp[23] == 67)) || |
463 | ((tmp[21] == 67) && (tmp[23] == 68))) { | 463 | ((tmp[21] == 67) && (tmp[23] == 68))) { |
464 | /* 68 : UDP BOOTP client */ | 464 | /* 68 : UDP BOOTP client */ |
@@ -469,7 +469,7 @@ static s32 update_attrib(struct adapter *padapter, struct sk_buff *pkt, struct p | |||
469 | } | 469 | } |
470 | } | 470 | } |
471 | } | 471 | } |
472 | } else if (0x888e == pattrib->ether_type) { | 472 | } else if (pattrib->ether_type == 0x888e) { |
473 | DBG_88E_LEVEL(_drv_info_, "send eapol packet\n"); | 473 | DBG_88E_LEVEL(_drv_info_, "send eapol packet\n"); |
474 | } | 474 | } |
475 | 475 | ||