aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/staging/vt6655/rxtx.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/vt6655/rxtx.c b/drivers/staging/vt6655/rxtx.c
index 890d108463a2..7e69bc99d60f 100644
--- a/drivers/staging/vt6655/rxtx.c
+++ b/drivers/staging/vt6655/rxtx.c
@@ -504,7 +504,7 @@ s_uFillDataHead(
504) 504)
505{ 505{
506 506
507 if (pTxDataHead == NULL) 507 if (!pTxDataHead)
508 return 0; 508 return 0;
509 509
510 510
@@ -648,7 +648,7 @@ s_vFillRTSHead(
648{ 648{
649 unsigned int uRTSFrameLen = 20; 649 unsigned int uRTSFrameLen = 20;
650 650
651 if (pvRTS == NULL) 651 if (!pvRTS)
652 return; 652 return;
653 653
654 if (bDisCRC) { 654 if (bDisCRC) {
@@ -843,7 +843,7 @@ s_vFillCTSHead(
843{ 843{
844 unsigned int uCTSFrameLen = 14; 844 unsigned int uCTSFrameLen = 14;
845 845
846 if (pvCTS == NULL) 846 if (!pvCTS)
847 return; 847 return;
848 848
849 if (bDisCRC) { 849 if (bDisCRC) {
@@ -1009,7 +1009,7 @@ s_vGenerateTxParameter(
1009 1009
1010 /* Fill RTS */ 1010 /* Fill RTS */
1011 s_vFillRTSHead(pDevice, byPktType, pvRTS, cbFrameSize, bNeedACK, bDisCRC, psEthHeader, wCurrentRate, byFBOption); 1011 s_vFillRTSHead(pDevice, byPktType, pvRTS, cbFrameSize, bNeedACK, bDisCRC, psEthHeader, wCurrentRate, byFBOption);
1012 } else if (pvRTS == NULL) {/* RTS_needless, non PCF mode */ 1012 } else if (!pvRTS) {/* RTS_needless, non PCF mode */
1013 struct vnt_rrv_time_ab *buf = pvRrvTime; 1013 struct vnt_rrv_time_ab *buf = pvRrvTime;
1014 1014
1015 buf->rrv_time = vnt_rxtx_rsvtime_le16(pDevice, PK_TYPE_11A, cbFrameSize, wCurrentRate, bNeedACK); 1015 buf->rrv_time = vnt_rxtx_rsvtime_le16(pDevice, PK_TYPE_11A, cbFrameSize, wCurrentRate, bNeedACK);