Modding a Class II switch mode power supply to have output dc- shorted to earth
It's fine, there will be a slight leakage to earth but that leakage should be much lower than with many class 1 power supplies.