Update list.c

Delete some useless curly braces