[PATCH v2 05/14] lib: Drop unnecessary check for hex digit