Remarks on the regularity of weak solutions to some variational inequalities