diff options
author | Andre Guedes <andre.guedes@intel.com> | 2019-04-23 22:44:21 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-04-24 05:52:32 +0300 |
commit | 8599099f0c58cec677a47c968e777eee8d64fb80 (patch) | |
tree | 4e0d9fec53474f079b616dbe4088ed22afd70898 /drivers/staging/axis-fifo | |
parent | 59ab87f6eb920fd0ee3058ae4c0956f52036b893 (diff) | |
download | linux-8599099f0c58cec677a47c968e777eee8d64fb80.tar.xz |
net: sched: taprio: Refactor taprio_get_start_time()
This patch does a code refactoring to taprio_get_start_time() function
to improve readability and report error properly.
If 'base' time is later than 'now', the start time is equal to 'base'
and taprio_get_start_time() is done. That's the natural case so we move
that code to the beginning of the function. Also, if 'cycle' calculation
is zero, something went really wrong with taprio and we should log that
internal error properly.
Signed-off-by: Andre Guedes <andre.guedes@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/staging/axis-fifo')
0 files changed, 0 insertions, 0 deletions