aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/clang-tools/gen_compile_commands.py
diff options
context:
space:
mode:
authorGavin Shan <[email protected]>2023-01-24 00:02:43 +0000
committerYury Norov <[email protected]>2023-06-22 20:57:41 +0000
commitcdd2d06fbc0a58297f782c8eb7e2f3c0b1dc367e (patch)
tree580b052a0e4d7aab56030a59dc0eb8a8c3fa87be /scripts/clang-tools/gen_compile_commands.py
parentlib/bitmap: drop optimization of bitmap_{from,to}_arr64 (diff)
downloadkernel-cdd2d06fbc0a58297f782c8eb7e2f3c0b1dc367e.tar.gz
kernel-cdd2d06fbc0a58297f782c8eb7e2f3c0b1dc367e.zip
nodemask: Drop duplicate check in for_each_node_mask()
The return value type is changed from 'int' to 'unsigned int' since commit 0dfe54071d7c8 ("nodemask: Fix return values to be unsigned"). Besides, the conversion between 'int' and 'unsigned int' on the parameter @node is guaranteed to be safe due to the limited range of MAX_NUMNODES and CONFIG_NODES_SHIFT. By the way, '(node >= 0)' should have been '(node) >= 0' actually. It's unnecessary to check if their return values are greater or equal to 0 in for_each_node_mask(). Remove it. No functional change intended. Signed-off-by: Gavin Shan <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Signed-off-by: Yury Norov <[email protected]>
Diffstat (limited to 'scripts/clang-tools/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions