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:
@@ -217,7 +217,8 @@ uint64_t qdf_usecs_to_log_timestamp(uint64_t usecs)
|
||||
|
||||
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);
|
||||
|
مرجع در شماره جدید
Block a user