diff options
author | Shaun Ruffell <sruffell@digium.com> | 2010-07-28 15:32:09 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2010-07-28 15:32:09 +0000 |
commit | ba657c3810664ab4c57b78eedbdff8a49f73d796 (patch) | |
tree | 7bfa9959bd7ee75fc5ffe66da121abb7bf430dde /drivers/dahdi/voicebus | |
parent | 7e658a2f945627fb8b915844934205bc19a73c2a (diff) |
wcte12xp, wctdm24xxp: Minor cleanup 0 -> NULL
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9046 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/voicebus')
-rw-r--r-- | drivers/dahdi/voicebus/GpakApi.c | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/drivers/dahdi/voicebus/GpakApi.c b/drivers/dahdi/voicebus/GpakApi.c index 9dde204..26820a0 100644 --- a/drivers/dahdi/voicebus/GpakApi.c +++ b/drivers/dahdi/voicebus/GpakApi.c @@ -1364,17 +1364,15 @@ gpakReadFramingStatsStatus_t gpakReadFramingStats( *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); } |