In prison, cigarettes are a luxury, but weapons are essentials.
Think about it, in the notorious Pelican Bay Prison, if people from at least two gangs were without weapons—well, without even mentioning anything else, that's a loss they couldn't afford.
Yang Yi had no choice, and he was angry too.
After all, he was young and hot-blooded, had gone through hell to get into prison, and had fought tooth and nail just to meet Zhang Yong. Yet Zhang Yong wanted to send Yang Yi back without saying a word. How could Yang Yi not be angry?
So, if Zhang Yong really wasn't going to teach him, then Yang Yi would just refuse to learn. He didn't believe that without this butcher Zhang, he'd be forced to eat pork with the hair still on.
Then, no matter what, Zhang Yong had to give Danny some face. Not teaching was one thing, but killing off Yang Yi, who had been sent by Danny, would mean Zhang Yong couldn't call himself righteous.