led: core: Don't call get_time_us() twice
The code doesn't seem to be time-sensitive enough to warrant calling
get_time_ns() twice instead of caching its value and using it no both
places.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent bfbfe1e commit d2184fff9369210653a07c90df11d8dc322b8b99
@Andrey Smirnov Andrey Smirnov authored on 7 Dec 2018
Sascha Hauer committed on 10 Dec 2018
Showing 1 changed file
View
drivers/led/core.c