net: hns3: remove redundant null check of an array