[PATCH 5.10 285/462] neighbour: delete redundant judgment statements