LOCKPORT – A man who was charged with selling cocaine three times in January pleaded guilty Friday and was admitted to the judicial diversion program of court-supervised drug treatment.

Marcus A. Walton, 34, of Lincoln Place, Town of Lockport, faces a maximum of nine years in prison if he fails in the diversion program, Niagara County Judge Matthew J. Murphy III said. But successful treatment means the charge will be reduced to a misdemeanor with no jail time.

Walton admitted to third-degree criminal sale of a controlled substance, specifying a Jan. 14 drug deal at the Lincoln Place Apartments. He was placed on probation July 8 for first-degree criminal contempt, an incident in which he violated a restraining order by entering his ex-girlfriend’s apartment Feb. 7 and pouring bleach on her clothes.