@@ -673,7 +673,7 @@ static int agg_get_output_num(enum wd_dae_data_type type,
673673}
674674
675675static int agg_output_num_check (struct wd_agg_col_info * agg_cols , __u32 cols_num ,
676- bool is_count_all , __u16 hw_type )
676+ bool is_count_all )
677677{
678678 __u32 size8 = 0 , size16 = 0 ;
679679 __u32 i , j , count_num ;
@@ -691,8 +691,7 @@ static int agg_output_num_check(struct wd_agg_col_info *agg_cols, __u32 cols_num
691691 if (is_count_all )
692692 size8 ++ ;
693693
694- if (hw_type < HISI_QM_API_VER5_BASE &&
695- (size8 > DAE_MAX_8B_COLS_NUM || size16 > DAE_MAX_16B_COLS_NUM )) {
694+ if (size8 > DAE_MAX_8B_COLS_NUM || size16 > DAE_MAX_16B_COLS_NUM ) {
696695 WD_ERR ("invalid: output col num 8B-16B %u-%u is more than support %d-%d !\n" ,
697696 size8 , size16 , DAE_MAX_8B_COLS_NUM , DAE_MAX_16B_COLS_NUM );
698697 return - WD_EINVAL ;
@@ -708,7 +707,7 @@ static int agg_output_num_check(struct wd_agg_col_info *agg_cols, __u32 cols_num
708707 return WD_SUCCESS ;
709708}
710709
711- static int hashagg_init_param_check (struct wd_agg_sess_setup * setup , __u16 hw_type )
710+ static int hashagg_init_param_check (struct wd_agg_sess_setup * setup )
712711{
713712 int ret ;
714713
@@ -735,7 +734,7 @@ static int hashagg_init_param_check(struct wd_agg_sess_setup *setup, __u16 hw_ty
735734 return - WD_EINVAL ;
736735
737736 return agg_output_num_check (setup -> agg_cols_info , setup -> agg_cols_num ,
738- setup -> is_count_all , hw_type );
737+ setup -> is_count_all );
739738}
740739
741740static int transfer_key_col_info (struct wd_key_col_info * key_cols ,
@@ -1217,7 +1216,6 @@ static int hashagg_sess_priv_init(struct wd_alg_driver *drv,
12171216 struct wd_ctx_config_internal * config ;
12181217 struct hisi_dae_ctx * dae_priv ;
12191218 struct hashagg_ctx * agg_ctx ;
1220- struct hisi_qp * qp ;
12211219 handle_t h_qp ;
12221220 int ret ;
12231221
@@ -1234,9 +1232,8 @@ static int hashagg_sess_priv_init(struct wd_alg_driver *drv,
12341232 dae_priv = (struct hisi_dae_ctx * )drv -> priv ;
12351233 config = & dae_priv -> config ;
12361234 h_qp = (handle_t )wd_ctx_get_priv (config -> ctxs [0 ].ctx );
1237- qp = (struct hisi_qp * )h_qp ;
12381235
1239- ret = hashagg_init_param_check (setup , qp -> q_info . hw_type );
1236+ ret = hashagg_init_param_check (setup );
12401237 if (ret )
12411238 return - WD_EINVAL ;
12421239
0 commit comments