diff options
author | Nuno Sá <nuno.sa@analog.com> | 2022-01-22 14:09:04 +0100 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2022-01-23 18:03:37 +0000 |
commit | da5936770517aef8b28888f1123fa654c78cc2f9 (patch) | |
tree | 0613c41596557c469c46a4171542d1db92b393d6 /kernel/trace/fgraph.c | |
parent | 90e33e1b3d96e537938c16ed802a5c4b4e147a65 (diff) |
adis: simplify 'adis_update_bits' macros
There's no need to use '__builtin_choose_expr' to choose the right
call to 'adis_update_bits_base()'. We can change the 'BUILD_BUG_ON()'
condition so that it makes sure only the supported sizes are
passed in. With that, we can just use 'sizeof(val)' as the size argument
of 'adis_update_bits_base()'.
Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20220122130905.99-2-nuno.sa@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'kernel/trace/fgraph.c')
0 files changed, 0 insertions, 0 deletions