add space after keyword
Subsystems (2)
PATCH 1/1 add space after keyword
The style standard is to use space after keywords. Example:
if (expr)
verus
if(expr)
Signed-off-by Stephen Hemminger <[email protected]>
--- dcb/dcb_app.c | 2 +- devlink/devlink.c | 2 +- ip/iprule.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
dcb/dcb_app.c +1 -1
@@ -264,7 +264,7 @@ static int dcb_app_parse_pcp(__u32 *key, const char *arg) {int i; -for (i =0 ; i <ARRAY_SIZE (pcp_names); i++) { +for (i =0 ; i <ARRAY_SIZE (pcp_names); i++) {if (pcp_names[i] &&strcmp (arg, pcp_names[i]) ==0 ) { *key = i;return 0 ;
devlink/devlink.c +1 -1
@@ -1963,7 +1963,7 @@ static int dl_argv_parse(struct dl *dl, uint64_t o_required,dl_arg_inc (dl); err =dl_argv_str (dl, §ionstr); -if (err) +if (err)return err; err =flash_overwrite_section_get (sectionstr, &opts->overwrite_mask);
ip/iprule.c +1 -1
@@ -695,7 +695,7 @@ static int iprule_list_flush_or_save(int argc, char **argv, int action)else if (ret !=2 )invarg ("invalid dport range\n" , *argv); filter.dport = r; - }else { + }else {if (matches (*argv,"dst" ) ==0 ||matches (*argv,"to" ) ==0 ) {NEXT_ARG ();
Signature · 1 line
2.39.0
This patch was applied to iproute2/iproute2.git (main) by Stephen Hemminger <[email protected]>:
Hello:
This patch was applied to iproute2/iproute2.git (main) by Stephen Hemminger <[email protected]>:
Quoted 9 lines · On Mon, 16 Jan 2023 09:20:46 -0800 you wrote:
The style standard is to use space after keywords. Example:
if (expr)
verus
if(expr)Signed-off-by Stephen Hemminger <[email protected]>[...]
Here is the summary with links:
- [iproute] add space after keyword
https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit/?id=46686c563b91
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html