Commit 7fe8bd04 authored by Tapan Prakash T's avatar Tapan Prakash T Committed by Greg Kroah-Hartman

drivers: staging: rtl8712: rtl871x_xmit.c: Fix Comparisons should place the...

drivers: staging: rtl8712: rtl871x_xmit.c: Fix Comparisons should place the constant on the right side of the test warning

Fixed checkpatch.pl warning 'Comparisons should place the constant on the
right side of the test'
Signed-off-by: default avatarTapan Prakash T <tapanprakasht@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0c684235
...@@ -241,7 +241,7 @@ sint r8712_update_attrib(struct _adapter *padapter, _pkt *pkt, ...@@ -241,7 +241,7 @@ sint r8712_update_attrib(struct _adapter *padapter, _pkt *pkt,
} }
/* r8712_xmitframe_coalesce() overwrite this!*/ /* r8712_xmitframe_coalesce() overwrite this!*/
pattrib->pktlen = pktfile.pkt_len; pattrib->pktlen = pktfile.pkt_len;
if (ETH_P_IP == pattrib->ether_type) { if (pattrib->ether_type == ETH_P_IP) {
/* The following is for DHCP and ARP packet, we use cck1M to /* The following is for DHCP and ARP packet, we use cck1M to
* tx these packets and let LPS awake some time * tx these packets and let LPS awake some time
* to prevent DHCP protocol fail */ * to prevent DHCP protocol fail */
...@@ -250,7 +250,7 @@ sint r8712_update_attrib(struct _adapter *padapter, _pkt *pkt, ...@@ -250,7 +250,7 @@ sint r8712_update_attrib(struct _adapter *padapter, _pkt *pkt,
_r8712_pktfile_read(&pktfile, &tmp[0], 24); _r8712_pktfile_read(&pktfile, &tmp[0], 24);
pattrib->dhcp_pkt = 0; pattrib->dhcp_pkt = 0;
if (pktfile.pkt_len > 282) {/*MINIMUM_DHCP_PACKET_SIZE)*/ if (pktfile.pkt_len > 282) {/*MINIMUM_DHCP_PACKET_SIZE)*/
if (ETH_P_IP == pattrib->ether_type) {/* IP header*/ if (pattrib->ether_type == ETH_P_IP) {/* IP header*/
if (((tmp[21] == 68) && (tmp[23] == 67)) || if (((tmp[21] == 68) && (tmp[23] == 67)) ||
((tmp[21] == 67) && (tmp[23] == 68))) { ((tmp[21] == 67) && (tmp[23] == 68))) {
/* 68 : UDP BOOTP client /* 68 : UDP BOOTP client
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment