On the Langevin equation with variable friction