ktime: Get rid of ktime_equal()
No point in going through loops and hoops instead of just comparing the values. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Peter Zijlstra <peterz@infradead.org>
This commit is contained in:
@@ -96,21 +96,6 @@ static inline ktime_t timeval_to_ktime(struct timeval tv)
|
||||
/* Convert ktime_t to nanoseconds - NOP in the scalar storage format: */
|
||||
#define ktime_to_ns(kt) (kt)
|
||||
|
||||
|
||||
/**
|
||||
* ktime_equal - Compares two ktime_t variables to see if they are equal
|
||||
* @cmp1: comparable1
|
||||
* @cmp2: comparable2
|
||||
*
|
||||
* Compare two ktime_t variables.
|
||||
*
|
||||
* Return: 1 if equal.
|
||||
*/
|
||||
static inline int ktime_equal(const ktime_t cmp1, const ktime_t cmp2)
|
||||
{
|
||||
return cmp1 == cmp2;
|
||||
}
|
||||
|
||||
/**
|
||||
* ktime_compare - Compares two ktime_t variables for less, greater or equal
|
||||
* @cmp1: comparable1
|
||||
|
Reference in New Issue
Block a user