core/psd/imx6ull/bch.c
void free_bch(struct bch_control *bch)
{
	unsigned int i;

	if (bch) {
		free(bch->a_pow_tab);
		free(bch->a_log_tab);
		free(bch->mod8_tab);
		free(bch->ecc_buf);
		free(bch->ecc_buf2);
		free(bch->xi_tab);
		free(bch->syn);
		free(bch->cache);
		free(bch->elp);

		for (i = 0; i < ARRAY_SIZE(bch->poly_2t); i++)
			free(bch->poly_2t[i]);

		free(bch);
	}
}
/**
 *  free_bch - free the BCH control structure
 *  @bch:    BCH control structure to release
 */
free the BCH control structure
@bch:    BCH control structure to release
free the BCH control structure @bch : BCH control structure to release
void free_bch(struct bch_control *bch)
{
	unsigned int i;
	if (bch) {
		free(bch->a_pow_tab);
		free(bch->a_log_tab);
		free(bch->mod8_tab);
		free(bch->ecc_buf);
		free(bch->ecc_buf2);
		free(bch->xi_tab);
		free(bch->syn);
		free(bch->cache);
		free(bch->elp);
		for (i = 0; i < ARRAY_SIZE(bch->poly_2t); i++)
			free(bch->poly_2t[i]);
		free(bch);
	}
}
void free_bch ( struct bch_control * bch ) { unsigned int i ; if ( bch ) { free ( bch -> a_pow_tab ) ; free ( bch -> a_log_tab ) ; free ( bch -> mod8_tab ) ; free ( bch -> ecc_buf ) ; free ( bch -> ecc_buf2 ) ; free ( bch -> xi_tab ) ; free ( bch -> syn ) ; free ( bch -> cache ) ; free ( bch -> elp ) ; for ( i = 0 ; i < ARRAY_SIZE ( bch -> poly_2t ) ; i ++ ) free ( bch -> poly_2t [ i ] ) ; free ( bch ) ; } }
free_bch - free the BCH control structure
  @bch:    BCH control structure to release
free_bch - free the BCH control structure @bch : BCH control structure to release