summaryrefslogtreecommitdiff
path: root/fs/coredump.c
diff options
context:
space:
mode:
authorMarkus Pargmann <mpa@pengutronix.de>2016-07-03 11:07:14 +0200
committerSimon Wunderlich <sw@simonwunderlich.de>2016-08-09 07:54:31 +0200
commit57b125029c0483ae53abf6d5d26c3eaa1b521573 (patch)
treebfb776c843ba2c9a01f77521c056ba338cfa5dca /fs/coredump.c
parenta8d8d1de414ee4c393ba43dbbf01eaf21a4f47bd (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 <mpa@pengutronix.de> [sven@narfation.org: 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 <sven@narfation.org> Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch> Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Diffstat (limited to 'fs/coredump.c')
0 files changed, 0 insertions, 0 deletions