What would happen if deodrant was sprayed on the penis?

Probably nothing if it's washed afterwards. Deodorants work by blocking pores, though, so if it's not washed, skin irritation could result.