conditions: add a NULL check
commit6ab0bb95a543848d44d274503d277e1e12acbe01
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 2 Mar 2016 11:34:42 +0000 (2 14:34 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Fri, 4 Mar 2016 19:56:53 +0000 (4 22:56 +0300)
tree1acb8d885d89bdc4e45e102122a0ac97a6c61b7d
parentdeeabc9e0e11f10e5520445729cdbdd5ee549f9b
conditions: add a NULL check

I found this missing NULL check while reading the code.  Oddly enough I
haven't seen any crashes from it...

Also let's remove the useless return at the end of the function.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch_conditions.c