Deletion of checks before specific function calls in Linux source files

A couple of functions performs input parameter validation before their implementations will try further actions with side effects. Some calling functions perform similar safety checks.

Functions which release a system resource are occasionally documented in the way that they tolerate the passing of a null pointer for example.
There is mostly no need because of this fact that a function caller repeats a corresponding check.

Semantic patch patterns can help to identify update candidates also in Linux source files.

Refresh
Refresh
Source Files
Filename Size Changed Actions
COPYING 0000018092 17.7 KB over 4 years
Deletion_of_checks_before_specific_function_calls_in_Linux_source_files.spec 0000004189 4.09 KB over 4 years
delete_unnecessary_checks_template-with_static1.cocci 0000017398 17 KB over 3 years
delete_unnecessary_checks_template1.cocci 0000000873 873 Bytes over 4 years
find_functions_with_unnecessary_checks1-inc.make 0000000905 905 Bytes over 4 years
find_functions_with_unnecessary_checks1.make 0000001397 1.36 KB over 4 years
find_functions_with_unnecessary_checks_template-with_static1.cocci 0000007885 7.7 KB over 4 years
find_input_parameter_validation-inc.make 0000002404 2.35 KB over 4 years
find_input_parameter_validation1.cocci 0000018181 17.8 KB over 3 years
find_input_parameter_validation1.make 0000001413 1.38 KB over 4 years
find_input_parameter_validation2-inc.make 0000000989 989 Bytes over 4 years
find_input_parameter_validation2.cocci 0000014154 13.8 KB over 3 years
find_input_parameter_validation2.make 0000001490 1.46 KB over 4 years
find_input_parameter_validation_template-with_static2.cocci 0000005941 5.8 KB over 4 years
handle_function_list_template-with_static.pgl 0000000635 635 Bytes almost 5 years
handle_function_list_template-with_static.sqlite 0000000350 350 Bytes almost 5 years
handle_function_list_template.sqlite 0000000314 314 Bytes almost 5 years
list_functions_with_unnecessary_checks-with_static1.py 0000004248 4.15 KB over 4 years
list_functions_with_unnecessary_checks_template-with_static1.cocci 0000011667 11.4 KB over 3 years
list_functions_with_unnecessary_checks_template1.cocci 0000001934 1.89 KB over 4 years
list_input_parameter_validation-with_static1.py 0000004404 4.3 KB over 4 years
list_input_parameter_validation1.cocci 0000001987 1.94 KB about 4 years
list_input_parameter_validation2.cocci 0000020704 20.2 KB over 3 years
list_input_parameter_validation_template-with_static2.cocci 0000007682 7.5 KB over 4 years
makefile 0000017487 17.1 KB over 4 years
overview1.odg 0000041369 40.4 KB almost 5 years
parallel-inc.make 0000019443 19 KB over 3 years
patch_functions_with_unnecessary_checks1-inc.make 0000000902 902 Bytes over 4 years
patch_functions_with_unnecessary_checks1.make 0000001436 1.4 KB over 4 years
preparation.sql 0000000626 626 Bytes almost 5 years
preparation.sqlite 0000000675 675 Bytes almost 5 years
Comments for Deletion_of_checks_before_specific_function_calls_in_Linux_source_files 0