summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hif/src/hif_napi.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/hif/src/hif_napi.c b/hif/src/hif_napi.c
index 1b2a91312c01..03699b625715 100644
--- a/hif/src/hif_napi.c
+++ b/hif/src/hif_napi.c
@@ -1626,14 +1626,15 @@ int hif_napi_cpu_blacklist(struct qca_napi_data *napid,
}
break;
case BLACKLIST_OFF:
- if (ref_count)
+ if (ref_count) {
ref_count--;
- rc = 0;
- if (ref_count == 0) {
- rc = hif_napi_core_ctl_set_boost(false);
- NAPI_DEBUG("boost_off() returns %d - refcnt=%d",
- rc, ref_count);
- hif_napi_bl_irq(napid, false);
+ rc = 0;
+ if (ref_count == 0) {
+ rc = hif_napi_core_ctl_set_boost(false);
+ NAPI_DEBUG("boost_off() returns %d - refcnt=%d",
+ rc, ref_count);
+ hif_napi_bl_irq(napid, false);
+ }
}
break;
default: