[PATCH 4.19 119/140] net: hns3: Check variable is valid before assigning it to another