Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3f1d4720 authored by Mariusz Skamra's avatar Mariusz Skamra Committed by Thomas Gleixner
Browse files

ktime: Simplify ktime_compare implementation

parent e707eb76
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -108,11 +108,7 @@ static inline ktime_t timeval_to_ktime(struct timeval tv)
 */
static inline int ktime_compare(const ktime_t cmp1, const ktime_t cmp2)
{
	if (cmp1 < cmp2)
		return -1;
	if (cmp1 > cmp2)
		return 1;
	return 0;
	return ktime_sub(cmp1, cmp2);
}

/**