diff options
author | Markus Pargmann <[email protected]> | 2016-07-03 11:07:14 +0200 |
---|---|---|
committer | Simon Wunderlich <[email protected]> | 2016-08-09 07:54:31 +0200 |
commit | 57b125029c0483ae53abf6d5d26c3eaa1b521573 (patch) | |
tree | bfb776c843ba2c9a01f77521c056ba338cfa5dca /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | a8d8d1de414ee4c393ba43dbbf01eaf21a4f47bd (diff) |
batman-adv: iv_ogm, Reduce code duplication
The difference between tq1 and tq2 are calculated the same way in two
separate functions.
This patch moves the common code to a separate function
'batadv_iv_ogm_neigh_diff' which handles everything necessary. The other
two functions can then handle errors and use the difference directly.
Signed-off-by: Markus Pargmann <[email protected]>
[[email protected]: rebased on current version, initialize return variable
in batadv_iv_ogm_neigh_diff, add kerneldoc, convert to bool return type]
Signed-off-by: Sven Eckelmann <[email protected]>
Signed-off-by: Marek Lindner <[email protected]>
Signed-off-by: Simon Wunderlich <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions