struct mmc_data *data)
{
struct scatterlist *sg;
- struct hif_scatter_item *scat_list;
int i;
data->blksz = HIF_MBOX_BLOCK_SIZE;
sg = scat_req->sgentries;
sg_init_table(sg, scat_req->scat_entries);
- scat_list = &scat_req->scat_list[0];
-
/* assemble SG list */
- for (i = 0; i < scat_req->scat_entries; i++, sg++, scat_list++) {
+ for (i = 0; i < scat_req->scat_entries; i++, sg++) {
ath6kl_dbg(ATH6KL_DBG_SCATTER, "%d: addr:0x%p, len:%d\n",
- i, scat_list->buf, scat_list->len);
+ i, scat_req->scat_list[i].buf,
+ scat_req->scat_list[i].len);
- sg_set_buf(sg, scat_list->buf, scat_list->len);
+ sg_set_buf(sg, scat_req->scat_list[i].buf,
+ scat_req->scat_list[i].len);
}
/* set scatter-gather table for request */