qcacmn: Return the error value if pktlog is not enabled
When pktlog enable gives an error as part of pktlog_release, then return the error value. Change-Id: I88289226d3dc933a46d6dba0cd6ee0b6d2abb2d5 CRs-Fixed: 2031287
This commit is contained in:

committed by
Sandeep Puligilla

parent
3a52bd7e6a
commit
6bb2c1755f
@@ -632,10 +632,11 @@ static int pktlog_release(struct inode *i, struct file *f)
|
|||||||
(struct hif_opaque_softc *)scn, pl_info->log_state,
|
(struct hif_opaque_softc *)scn, pl_info->log_state,
|
||||||
cds_is_packet_log_enabled(), 0, 1);
|
cds_is_packet_log_enabled(), 0, 1);
|
||||||
if (ret != 0)
|
if (ret != 0)
|
||||||
pr_warn("%s: pktlog cannot be enabled", __func__);
|
pr_warn("%s: pktlog cannot be enabled. ret value %d\n",
|
||||||
|
__func__, ret);
|
||||||
|
|
||||||
pl_info->curr_pkt_state = PKTLOG_OPR_NOT_IN_PROGRESS;
|
pl_info->curr_pkt_state = PKTLOG_OPR_NOT_IN_PROGRESS;
|
||||||
return 0;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef MIN
|
#ifndef MIN
|
||||||
|
Reference in New Issue
Block a user