[svn-commits] sruffell: linux/trunk r9046 - /linux/trunk/drivers/dahdi/voicebus/GpakApi.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Jul 28 10:32:19 CDT 2010


Author: sruffell
Date: Wed Jul 28 10:32:09 2010
New Revision: 9046

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9046
Log:
wcte12xp, wctdm24xxp: Minor cleanup 0 -> NULL

Modified:
    linux/trunk/drivers/dahdi/voicebus/GpakApi.c

Modified: linux/trunk/drivers/dahdi/voicebus/GpakApi.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/voicebus/GpakApi.c?view=diff&rev=9046&r1=9045&r2=9046
==============================================================================
--- linux/trunk/drivers/dahdi/voicebus/GpakApi.c (original)
+++ linux/trunk/drivers/dahdi/voicebus/GpakApi.c Wed Jul 28 10:32:09 2010
@@ -1364,17 +1364,15 @@
     *pFramingError3Count = ReadBuffer[2];
     *pDmaStopErrorCount  = ReadBuffer[3];
     
-    if(pDmaSlipStatsBuffer != 0) 
-    // If users want to get the DMA slips count
-    {
-	    pDmaSlipStatsBuffer[0] = ReadBuffer[4];
-    	pDmaSlipStatsBuffer[1] = ReadBuffer[5];
-    	pDmaSlipStatsBuffer[2] = ReadBuffer[6];
-    	pDmaSlipStatsBuffer[3] = ReadBuffer[7];
-    	pDmaSlipStatsBuffer[4] = ReadBuffer[8];
-    	pDmaSlipStatsBuffer[5] = ReadBuffer[9];
-    
-    }
+	if (pDmaSlipStatsBuffer != NULL) {
+		/* If users want to get the DMA slips count */
+		pDmaSlipStatsBuffer[0] = ReadBuffer[4];
+		pDmaSlipStatsBuffer[1] = ReadBuffer[5];
+		pDmaSlipStatsBuffer[2] = ReadBuffer[6];
+		pDmaSlipStatsBuffer[3] = ReadBuffer[7];
+		pDmaSlipStatsBuffer[4] = ReadBuffer[8];
+		pDmaSlipStatsBuffer[5] = ReadBuffer[9];
+	}
     /* Return with an indication the statistics were read successfully. */
     return (RfsSuccess);
 }




More information about the svn-commits mailing list