aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorTzvetomir Stoyanov <[email protected]>2018-11-30 23:08:11 -0500
committerArnaldo Carvalho de Melo <[email protected]>2019-01-08 13:28:13 -0300
commitf87ce7c43f36d4abff91b19edadd23939f99ff98 (patch)
tree82f485dc52c798fdea3483ccbfcedb1ae5bd3906 /net/lapb/lapb_timer.c
parent6d2d6fd7e3ee0daf0d8308741792b3ec41aafd0c (diff)
tools lib traceevent: Changed return logic of tep_register_event_handler() API
In order to make libtraceevent into a proper library, its API should be straightforward. The tep_register_event_handler() functions returns -1 in case it successfully registers the new event handler. Such return code is used by the other library APIs in case of an error. To unify the return logic of tep_register_event_handler() with the other APIs, this patch introduces enum tep_reg_handler, which is used by this function as return value, to handle all possible successful return cases. Signed-off-by: Tzvetomir Stoyanov <[email protected]> Cc: Andrew Morton <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Steven Rostedt (VMware) <[email protected]> Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions