[PATCH 1/5] staging/slicoss: Check pointer before dereferencing

2013-02-18 Thread Peter Huewe
Smatch complains that the variable adapter is dereferenced before it is checked: slicoss.c:906 slic_timer_load_check() warn: variable dereferenced before check 'adapter' (see line 904) -> move the assignment after the check. Signed-off-by: Peter Huewe --- drivers/staging/slicoss/slicoss.c |

[PATCH 1/5] staging/slicoss: Check pointer before dereferencing

2013-02-18 Thread Peter Huewe
Smatch complains that the variable adapter is dereferenced before it is checked: slicoss.c:906 slic_timer_load_check() warn: variable dereferenced before check 'adapter' (see line 904) - move the assignment after the check. Signed-off-by: Peter Huewe peterhu...@gmx.de ---