]> git.karo-electronics.de Git - karo-tx-linux.git/commit
cirrus: cs89x0: fix time comparison
authorAsaf Vertz <asaf.vertz@tandemg.com>
Sun, 14 Dec 2014 08:34:18 +0000 (10:34 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Dec 2014 16:44:21 +0000 (11:44 -0500)
commit0f9a2a9c08ad3579822503d5cfa1f6b128c28a99
tree9197bd487bda147a824debdce1bfae1861daedf5
parentc5e44b69854294df7234a4f898b2d05adee1a0d5
cirrus: cs89x0: fix time comparison

To be future-proof and for better readability the time comparisons are
modified to use time_before, time_after, and time_after_eq instead of
plain, error-prone math.

Signed-off-by: Asaf Vertz <asaf.vertz@tandemg.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cirrus/cs89x0.c