[PATCH] Staging: slicoss: Fix smatch warning in slicoss.c

2014-03-27 Thread Monam Agarwal
This patch fixes following smatch warning: slicoss/slicoss.c:1429 slic_cmdq_addcmdpage() error: we previously assumed 'pslic_handle' could be null Signed-off-by: Monam Agarwal monamagarwal...@gmail.com --- drivers/staging/slicoss/slicoss.c |3 +-- 1 file changed, 1 insertion(+), 2

Re: [RFC] staging:dgap: sparse errors/warnings

2014-03-27 Thread Dan Carpenter
On Thu, Mar 27, 2014 at 09:22:36AM -0400, Mark Hounschell wrote: checkpatch now gives 0 warnings or errors on both dgap.c and dgap.h so I'm now looking at sparse errors/warnings. There are many and I'm not really clear as to the best way to address them. This is my first exposure to sparse. A