Эх сурвалжийг харах

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
Naveen S 2 жил өмнө
parent
commit
d8890ce513

+ 2 - 1
qdf/linux/src/qdf_time.c

@@ -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);