qcacmn: Fix return value in qdf_usecs_to_log_timestamp function
qdf_usecs_to_log_timestamp() was returning the remainder value of do_div operation instead of the quotient. Now fix has been made to return the correct value. Change-Id: I6c7041b4a837b311f63616aff23bf2a20dbe7adb CRs-Fixed: 3471529
This commit is contained in:

committed by
Rahul Choudhary

parent
eb95c8b60f
commit
d8890ce513
@@ -217,7 +217,8 @@ uint64_t qdf_usecs_to_log_timestamp(uint64_t usecs)
|
|||||||
|
|
||||||
ts = (usecs * QDF_LOG_TIMESTAMP_CYCLES_PER_10_US);
|
ts = (usecs * QDF_LOG_TIMESTAMP_CYCLES_PER_10_US);
|
||||||
|
|
||||||
return do_div(ts, 10ul);
|
do_div(ts, 10ul);
|
||||||
|
return ts;
|
||||||
}
|
}
|
||||||
|
|
||||||
qdf_export_symbol(qdf_usecs_to_log_timestamp);
|
qdf_export_symbol(qdf_usecs_to_log_timestamp);
|
||||||
|
Reference in New Issue
Block a user