From cb2fd65e3da7a68ef11d458e9ca99463f90b32a0 Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" Date: Tue, 28 Oct 2008 21:49:02 +0000 Subject: fix a large number of warnings found by sparse, the kernel code sanity checking tool. some of these fixes are non-optimal (casting 'unsigned long' to '__user void *'), but are unavoidable in many cases. started from tzafrir's patch, did most of the work myself. (closes issue #13763) Reported by: tzafrir Patches: sparse_fixes_1.diff uploaded by tzafrir (license 46) git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5162 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/wcte12xp/GpakApi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/dahdi/wcte12xp/GpakApi.c') diff --git a/drivers/dahdi/wcte12xp/GpakApi.c b/drivers/dahdi/wcte12xp/GpakApi.c index bcba139..748cc94 100644 --- a/drivers/dahdi/wcte12xp/GpakApi.c +++ b/drivers/dahdi/wcte12xp/GpakApi.c @@ -1249,7 +1249,7 @@ gpakReadFramingStatsStatus_t gpakReadFramingStats( *pFramingError3Count = ReadBuffer[2]; *pDmaStopErrorCount = ReadBuffer[3]; - if(pDmaSlipStatsBuffer != 0) + if(pDmaSlipStatsBuffer != NULL) // If users want to get the DMA slips count { pDmaSlipStatsBuffer[0] = ReadBuffer[4]; -- cgit v1.2.3