[Linuxarm] [PATCH 04/14] net/hns3: move judgment conditions to separated functions