Many men do not have a perfectly straight penis, and this would be considered a "variation of normal" and in no need of medical attention. However, if you have any pain, you might have Peyronie's disease, which can be treated: https://www.health.harvard.edu/a_to_z/curvature-of-the-penis-peyronies-disease-a-to-z