From: yuan linyu <cug...@163.com> Date: Tue, 14 Nov 2017 22:30:59 +0800
> From: yuan linyu <linyu.y...@alcatel-sbell.com.cn> > > each netlink attribute have proper process when error happen, > when exit on attribute process, it implies that no error, > so err = 0; is useless. > > assign err = 0; at beginning if all attributes not set. > > Signed-off-by: yuan linyu <linyu.y...@alcatel-sbell.com.cn> This change is not correct. The IFLA_VF_PORTS code block can finish with err set non-zero. The assignment to zero there is really necessary.