This is purely cosmetic.
This eliminates a warning about a missing return statement. The code was correct though, because hex2num() is guarded by is_hexdigit().