aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorDaniel Latypov <[email protected]>2022-01-27 13:52:22 -0800
committerShuah Khan <[email protected]>2022-01-31 11:55:48 -0700
commitc2741453478badf571ef020d160053e8d5e1ba94 (patch)
tree5229172b01762e0a8f79b4401c3baf4026872a93 /net/lapb/lapb_timer.c
parent2b6861e2372bac68861c54372f68f6016a7484fc (diff)
kunit: cleanup assertion macro internal variables
All the operands should be tagged `const`. We're only assigning them to variables so that we can compare them (e.g. check if left == right, etc.) and avoid evaluating expressions multiple times. There's no need for them to be mutable. Also rename the helper variable `loc` to `__loc` like we do with `__assertion` and `__strs` to avoid potential name collisions with user code. Signed-off-by: Daniel Latypov <[email protected]> Reviewed-by: David Gow <[email protected]> Reviewed-by: Brendan Higgins <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions