Conditional checks against the same value twice; the comment
immediately before implies that one of the 'auto's should
probably be 'none'.

Error caught by PVS-Studio (see http://www.viva64.com/en/b/0277/)