main.c: remove unnecessary if statement