ktime: Simplify ktime_compare implementation
authorMariusz Skamra <mariuszx.skamra@intel.com>
Fri, 26 May 2017 13:00:47 +0000 (15:00 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 20 Jun 2017 19:33:55 +0000 (21:33 +0200)
commit3f1d472055bbe914c9e54715fdbf2272851e23ff
tree2869b0c24f7b54bddb577fd89428a2bbf9ed6d3a
parente707eb762cf38b63402c1a124192f648a0629168
ktime: Simplify ktime_compare implementation

ktime_sub can be used here instread of two conditional checks.

Signed-off-by: Mariusz Skamra <mariuszx.skamra@intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@intel.com>
Link: http://lkml.kernel.org/r/1495803647-9504-1-git-send-email-mariuszx.skamra@intel.com
include/linux/ktime.h