This if statement is redundant. It will never work because of previous if statement. As there is if/else the error code will always be 0, so this if will never return anything.