octeontx2-pf: Fix assigned error return value that is never used
[linux-2.6-microblaze.git] / drivers / net / ethernet / marvell / octeontx2 / nic / otx2_dmac_flt.c
index ffe3e94..383a6b5 100644 (file)
@@ -161,7 +161,7 @@ int otx2_dmacflt_update(struct otx2_nic *pf, u8 *mac, u8 bit_pos)
 
        if (!req) {
                mutex_unlock(&pf->mbox.lock);
-               rc = -ENOMEM;
+               return -ENOMEM;
        }
 
        ether_addr_copy(req->mac_addr, mac);