Calf cramps in competition

had an athlete a few years back with the same problem, he never used caffeine. told him to try some salt. the cramping lasted about 6 months and 3 years on he does not have a problem with calves anymore. still don’t know what the cause was.