ninnyhammer (n.)
also ninny-hammer, "simpleton," 1590s, from ninny + hammer (n.), but the signification of the second element is obscure.