aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <[email protected]>2012-11-09 15:42:26 -0300
committerArnaldo Carvalho de Melo <[email protected]>2012-11-09 17:35:15 -0300
commite46466b8bd5918626250dc0d6cb6c2147a611087 (patch)
treed63153da5d22ab7387a0ba3b6c754925e5a8fc66 /lib/memory-notifier-error-inject.c
parent8a38cce4c900307e947eda774f844caf5b9a7083 (diff)
tools lib traceevent: No need to check for < 0 on an unsigned enum
gcc on f14 32-bit complains: tools/lib/traceevent/event-parse.c: In function ‘pevent_register_print_function’: tools/lib/traceevent/event-parse.c:5366:3: error: comparison of unsigned expression < 0 is always false This is because: enum pevent_func_arg_type type; this enum doesn't have any negative value, so gcc makes it an 'unsigned int'. Fix it by removing the < 0 test. Cc: David Ahern <[email protected]> Cc: Frederic Weisbecker <[email protected]> Cc: Mike Galbraith <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Stephane Eranian <[email protected]> Cc: Steven Rostedt <[email protected]> Link: http://lkml.kernel.org/n/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions