Neo wasnt the anti-virus, neo was the virus in the first place. The only thing was he had a set moral value, which was his choice, where as when neo infested smith the first time, the 'virus' affinity in neo transferred to smith along with neo's freewill and choice, but this time, smith chose the opposite of neo.