aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshyam saini <mayhs11saini@gmail.com>2016-09-29 04:22:20 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-10-02 17:29:11 +0200
commit4d932504b534584e116b400dd6e7b8ce7deb455c (patch)
tree6fc904a89bb74e6a78aa4cbb3c901730880eceb5
parent7b170bacbb13089ccb1d14ca18ad4fb5dcb8b72e (diff)
downloadsoftirq-debug-4d932504b534584e116b400dd6e7b8ce7deb455c.tar.gz
Staging: vt6655: Remove explicit NULL comparison using Coccinelle
Remove the explicit NULL comparison and rewrite in a compact form. Signed-off-by: shyam saini <mayhs11saini@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-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 890d108463a239..7e69bc99d60fd6 100644
--- a/drivers/staging/vt6655/rxtx.c
+++ b/drivers/staging/vt6655/rxtx.c
@@ -504,7 +504,7 @@ s_uFillDataHead(
)
{
- if (pTxDataHead == NULL)
+ if (!pTxDataHead)
return 0;
@@ -648,7 +648,7 @@ s_vFillRTSHead(
{
unsigned int uRTSFrameLen = 20;
- if (pvRTS == NULL)
+ if (!pvRTS)
return;
if (bDisCRC) {
@@ -843,7 +843,7 @@ s_vFillCTSHead(
{
unsigned int uCTSFrameLen = 14;
- if (pvCTS == NULL)
+ if (!pvCTS)
return;
if (bDisCRC) {
@@ -1009,7 +1009,7 @@ s_vGenerateTxParameter(
/* Fill RTS */
s_vFillRTSHead(pDevice, byPktType, pvRTS, cbFrameSize, bNeedACK, bDisCRC, psEthHeader, wCurrentRate, byFBOption);
- } else if (pvRTS == NULL) {/* RTS_needless, non PCF mode */
+ } else if (!pvRTS) {/* RTS_needless, non PCF mode */
struct vnt_rrv_time_ab *buf = pvRrvTime;
buf->rrv_time = vnt_rxtx_rsvtime_le16(pDevice, PK_TYPE_11A, cbFrameSize, wCurrentRate, bNeedACK);