Input: remove a redundant max() call