coding style: prototype of functions with no parameters
Functions that have no parameters should use "void" as parameter
in the function declaration.
Issue identified and fixed by script checkpatch from Linux kernel
v5.1 using the command
find src/ -type f -exec ./tools/scripts/checkpatch.pl \
-q --types FUNCTION_WITHOUT_ARGS --fix-inplace -f {} \;
Change-Id: If104ac75b44e939ec86155ff7b5720f2e33c6b39
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/5621
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Tested-by: jenkins
This commit is contained in:
@@ -45,7 +45,7 @@ void tap_set_state_impl(tap_state_t new_state)
|
||||
state_follower = new_state;
|
||||
}
|
||||
|
||||
tap_state_t tap_get_state()
|
||||
tap_state_t tap_get_state(void)
|
||||
{
|
||||
return state_follower;
|
||||
}
|
||||
@@ -64,7 +64,7 @@ void tap_set_end_state(tap_state_t new_end_state)
|
||||
end_state_follower = new_end_state;
|
||||
}
|
||||
|
||||
tap_state_t tap_get_end_state()
|
||||
tap_state_t tap_get_end_state(void)
|
||||
{
|
||||
return end_state_follower;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user