aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-trace.c
diff options
context:
space:
mode:
authorAntoniu Miclaus <[email protected]>2022-05-11 12:00:06 +0300
committerJonathan Cameron <[email protected]>2022-06-19 17:22:48 +0100
commit6f6bd7591945c679b7f595119ea997b19f5794db (patch)
tree113d5e78f60d4feee7b82960bed5aa49d3580544 /drivers/usb/cdns3/cdns3-trace.c
parentf8ef475aa069cd72e9e7bdb2d60dc6a89e2bafad (diff)
iio: freq: admv1014: Fix warning about dubious x & !y and improve readability
The warning comes from __BF_FIELD_CHECK() specifically BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ? \ ~((_mask) >> __bf_shf(_mask)) & (_val) : 0, \ _pfx "value too large for the field"); \ The code was using !(enum value) which is not particularly easy to follow so replace that with explicit matching and use of ? 0 : 1; or ? 1 : 0; to improve readability. Signed-off-by: Antoniu Miclaus <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-trace.c')
0 files changed, 0 insertions, 0 deletions