aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/i2c/algos/i2c-algo-bit.c
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2011-04-20 21:13:06 -0400
committerSteven Rostedt <rostedt@goodmis.org>2011-05-17 10:42:02 -0400
commit0286d2d12d78ea8aaf0722473dd20cb609a99709 (patch)
tree335c873586de18d7955b612be76f366de953d51f /drivers/i2c/algos/i2c-algo-bit.c
parentftrace/recordmcount: Remove duplicate code to find mcount symbol (diff)
downloadwireguard-linux-0286d2d12d78ea8aaf0722473dd20cb609a99709.tar.xz
wireguard-linux-0286d2d12d78ea8aaf0722473dd20cb609a99709.zip
ftrace/recordmcount: Add helper function get_sym_str_and_relp()
The code to get the symbol, string, and relp pointers in the two functions sift_rel_mcount() and nop_mcount() are identical and also non-trivial. Moving this duplicate code into a single helper function makes the code easier to read and more maintainable. Cc: John Reiser <jreiser@bitwagon.com> Link: http://lkml.kernel.org/r/20110421023739.723658553@goodmis.org Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'drivers/i2c/algos/i2c-algo-bit.c')
0 files changed, 0 insertions, 0 deletions