[PATCH 72/82] net: hns3: add protect for parameters and remove unused functions