diff --git a/drivers/net/hns3/hns3_fdir.c b/drivers/net/hns3/hns3_fdir.c index 693d9c731ad..4e1667d2f8d 100644 --- a/drivers/net/hns3/hns3_fdir.c +++ b/drivers/net/hns3/hns3_fdir.c @@ -618,7 +618,7 @@ static bool hns3_fd_convert_tuple(struct hns3_hw *hw, break; default: hns3_warn(hw, "not support tuple of (%u)", tuple); - break; + return false; } return true; }