aboutsummaryrefslogtreecommitdiff
path: root/lib/pm-notifier-error-inject.c
diff options
context:
space:
mode:
authorJérémy Lefaure <[email protected]>2017-10-15 21:22:49 -0400
committerSteven Rostedt (VMware) <[email protected]>2018-04-11 11:30:33 -0400
commit0a4d0564f0fc377ad0ba66ce214b9b16324aea4b (patch)
tree31dc7eec2d77568c347f82ef4024434a0126f1cb /lib/pm-notifier-error-inject.c
parentb0dc52f15e7fe2b973ecfe4f3706f1b35ce3943a (diff)
tracing: Use ARRAY_SIZE() macro instead of open coding it
It is useless to re-invent the ARRAY_SIZE macro so let's use it instead of DATA_CNT. Found with Coccinelle with the following semantic patch: @r depends on (org || report)@ type T; T[] E; position p; @@ ( (sizeof(E)@p /sizeof(*E)) | (sizeof(E)@p /sizeof(E[...])) | (sizeof(E)@p /sizeof(T)) ) Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Jérémy Lefaure <[email protected]> [ Removed useless include of kernel.h ] Signed-off-by: Steven Rostedt (VMware) <[email protected]>
Diffstat (limited to 'lib/pm-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions