avl: add a bunch of NULL checks to deal with the empty trees
commitc44b0715030d28c3221b80a9989e26a3cf7f444c
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 24 Feb 2014 15:01:01 +0000 (24 18:01 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Mon, 24 Feb 2014 15:01:01 +0000 (24 18:01 +0300)
tree5a11098ac6c4f4c593a8f6a66757734df80aa1e9
parent15ddd6badb46dbd25ca922057f381f75ef9c3ff0
avl: add a bunch of NULL checks to deal with the empty trees

I have changed the AVL code so that a NULL tree counts as an empty tree.

Meanwhile I missed a lot of places where which should have been updated to
handle NULL AVL trees.

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