Remove a redundant if (maxpty == npty) in check_pty - this is also tested by the two ifs at the start of the function and both variables are only altered under pt_softc_lock so cannot change between the checks.
Remove a redundant if (maxpty == npty) in check_pty - this is also tested by
the two ifs at the start of the function and both variables are only altered
under pt_softc_lock so cannot change between the checks.

ok guenther@

orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars