The 'esize' is better be got by 'kfifo_esize()'
instead of using 'sizeof' to make the code more
compatible and easier to unserstand.
Signed-off-by: Fancy Fang <chen.fang@nxp.com>
Reviewed-by: Robby Cai <robby.cai@nxp.com>
chans = &info->chans;
cfifo = &info->cfifo;
dsb_len = cc->sb_data_len + cc->db_data_len;
- esize = sizeof(struct ctxld_unit);
+ esize = kfifo_esize(&cfifo->fifo);
sg_init_table(cfifo->sgl, cfifo->sgl_num);
nsgl = kfifo_dma_out_prepare(&cfifo->fifo, cfifo->sgl,