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:
Poddar, Siddarth
2017-04-10 16:35:59 +05:30
committato da Sandeep Puligilla
parent 3a52bd7e6a
commit 6bb2c1755f

Vedi File

@@ -632,10 +632,11 @@ static int pktlog_release(struct inode *i, struct file *f)
(struct hif_opaque_softc *)scn, pl_info->log_state,
cds_is_packet_log_enabled(), 0, 1);
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;
return 0;
return ret;
}
#ifndef MIN