We removed a drop ceiling in our 2nd bathroom and discovered that some previous homeowner/DIYer had run wiring for a new dryer through the drywall ceiling into the wall, and hid it with the drop ceiling - rather than drill through the top plate of the wall. We shut off the breaker, unhooked the receptacle, drilled, and ran it through the top plate. The wire is 10/2. I am attaching a photo of how it was wired. Ground is screwed into the metal box, and then into the neutral prong. When we reconnected it, we re-wired it exactly as it had been. Dryer came with the house when we moved in 2 years ago. We have never had any problems with it. Dryer is on a 30A breaker all by itself.
Is it ok to leave it as is?