u16 pcifunc)
{
struct rvu_hwinfo *hw = rvu->hw;
- bool is_pf, detach_all = true;
+ bool detach_all = true;
struct rvu_block *block;
- int devnum, blkid;
-
- /* Check if this is for a RVU PF or VF */
- if (pcifunc & RVU_PFVF_FUNC_MASK) {
- is_pf = false;
- devnum = rvu_get_hwvf(rvu, pcifunc);
- } else {
- is_pf = true;
- devnum = rvu_get_pf(pcifunc);
- }
+ int blkid;
spin_lock(&rvu->rsrc_lock);
struct msg_rsp *rsp)
{
u16 pcifunc = attach->hdr.pcifunc;
- int devnum, err;
- bool is_pf;
+ int err;
/* If first request, detach all existing attached resources */
if (!attach->modify)
rvu_detach_rsrcs(rvu, NULL, pcifunc);
- /* Check if this is for a RVU PF or VF */
- if (pcifunc & RVU_PFVF_FUNC_MASK) {
- is_pf = false;
- devnum = rvu_get_hwvf(rvu, pcifunc);
- } else {
- is_pf = true;
- devnum = rvu_get_pf(pcifunc);
- }
-
spin_lock(&rvu->rsrc_lock);
/* Check if the request can be accommodated */