kni: do not use assignment in if condition