Remove warning on used uninitialized variable

The default compilation makes the use of port an error because both
branches of the if have conditions.