Diff between 38abe4d81102294352818428533e966922237cbc and 3d8a3b5c0be10223453ea2459b5a7ae6581e5047

Changed Files

File Additions Deletions Status
android/hal-audio.c +0 -12 modified

Full Patch

diff --git a/android/hal-audio.c b/android/hal-audio.c
index cd2c0a4..23eb6b8 100644
--- a/android/hal-audio.c
+++ b/android/hal-audio.c
@@ -135,18 +135,6 @@ struct sbc_data {
 	unsigned frames_per_packet;
 };
 
-static inline void timespec_diff(struct timespec *a, struct timespec *b,
-							struct timespec *res)
-{
-	res->tv_sec = a->tv_sec - b->tv_sec;
-	res->tv_nsec = a->tv_nsec - b->tv_nsec;
-
-	if (res->tv_nsec < 0) {
-		res->tv_sec--;
-		res->tv_nsec += 1000000000; /* 1sec */
-	}
-}
-
 static void timespec_add(struct timespec *base, uint64_t time_us,
 							struct timespec *res)
 {