if (tfp == NULL || fw_fid == NULL)
return -EINVAL;
- bp = container_of(tfp, struct bnxt, tfp);
+ bp = (struct bnxt *)tfp->bp;
if (bp == NULL)
return -EINVAL;
if (tfp == NULL || pf == NULL)
return -EINVAL;
- bp = container_of(tfp, struct bnxt, tfp);
+ bp = (struct bnxt *)tfp->bp;
if (BNXT_VF(bp) && bp->parent) {
*pf = bp->parent->fid - 1;
return 0;