Staging: lustre: Adding spaces around '='
PATCH 1/1 Staging: lustre: Adding spaces around '='
Fix checkpatch.pl error:
ERROR: spaces required around that ':' (ctx:VxW)
--- drivers/staging/lustre/lnet/selftest/console.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
drivers/staging/lustre/lnet/selftest/console.c +6 -6
@@ -527,7 +527,7 @@ lstcon_group_add(char *name)lstcon_group_t *grp;int rc; - rc = (lstcon_group_find (name, &grp) ==0 )? -EEXIST :0 ; + rc = (lstcon_group_find (name, &grp) ==0 )? -EEXIST :0 ;if (rc !=0 ) {/* find a group with same name */ lstcon_group_put (grp);
@@ -816,7 +816,7 @@ lstcon_group_info(char *name, lstcon_ndlist_ent_t *gents_p,LST_NODE_STATE_COUNTER (ndl->ndl_node, gentp); rc =copy_to_user (gents_p, gentp, -sizeof (lstcon_ndlist_ent_t)) ? -EFAULT :0 ; +sizeof (lstcon_ndlist_ent_t)) ? -EFAULT :0 ;LIBCFS_FREE (gentp,sizeof (lstcon_ndlist_ent_t));
@@ -847,7 +847,7 @@ lstcon_batch_add(char *name)int i;int rc; - rc = (lstcon_batch_find (name, &bat) ==0 )? -EEXIST :0 ; + rc = (lstcon_batch_find (name, &bat) ==0 )? -EEXIST :0 ;if (rc !=0 ) {CDEBUG (D_NET ,"Batch %s already exists\n" , name);return rc;
@@ -911,7 +911,7 @@ lstcon_batch_list(int index, int len, char *name_up)list_for_each_entry (bat, &console_session.ses_bat_list, bat_link) {if (index-- ==0 ) {return copy_to_user (name_up, bat->bat_name, len) ? - -EFAULT :0 ; + -EFAULT :0 ; } }
@@ -956,7 +956,7 @@ lstcon_batch_info(char *name, lstcon_test_batch_ent_t *ent_up, int server, &test->tes_dst_grp->grp_ndl_list;if (dents_up !=NULL ) { - rc =lstcon_nodes_getent ((server ? srvlst: clilst), + rc =lstcon_nodes_getent ((server ? srvlst : clilst), index_p, ndent_p, dents_up);return rc; }
@@ -1683,7 +1683,7 @@ int lstcon_session_match(lst_sid_t sid) {return (console_session.ses_id.ses_nid == sid.ses_nid && - console_session.ses_id.ses_stamp == sid.ses_stamp) ?1 :0 ; + console_session.ses_id.ses_stamp == sid.ses_stamp) ?1 :0 ; } static void
Signature · 1 line
1.9.1
Quoted 13 lines · Dilek Uzulmez
Fix checkpatch.pl error:
ERROR: spaces required around that ':' (ctx:VxW)Signed-off-by Dilek Uzulmez <[email protected]>--- drivers/staging/lustre/lnet/selftest/console.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)drivers/staging/lustre/lnet/selftest/console.c +0
-0
drivers/staging/lustre/lnet/selftest/console.c lstcon_group_add(char *name) · line 530
Quoted 5 lines
drivers/staging/lustre/lnet/selftest/console.c +1
-1@@ -527,7 +527,7 @@ lstcon_group_add(char *name)lstcon_group_t *grp;int rc; - rc = (lstcon_group_find (name, &grp) ==0 )? -EEXIST :0 ; + rc = (lstcon_group_find (name, &grp) ==0 )? -EEXIST :0 ;
There should be a space before ? too.
julia
Quoted 58 lines
drivers/staging/lustre/lnet/selftest/console.c +5
-6if (rc !=0 ) {/* find a group with same name */ lstcon_group_put (grp);@@ -816,7 +816,7 @@ lstcon_group_info(char *name, lstcon_ndlist_ent_t *gents_p,LST_NODE_STATE_COUNTER (ndl->ndl_node, gentp); rc =copy_to_user (gents_p, gentp, -sizeof (lstcon_ndlist_ent_t)) ? -EFAULT :0 ; +sizeof (lstcon_ndlist_ent_t)) ? -EFAULT :0 ;LIBCFS_FREE (gentp,sizeof (lstcon_ndlist_ent_t));@@ -847,7 +847,7 @@ lstcon_batch_add(char *name)int i;int rc; - rc = (lstcon_batch_find (name, &bat) ==0 )? -EEXIST :0 ; + rc = (lstcon_batch_find (name, &bat) ==0 )? -EEXIST :0 ;if (rc !=0 ) {CDEBUG (D_NET ,"Batch %s already exists\n" , name);return rc;@@ -911,7 +911,7 @@ lstcon_batch_list(int index, int len, char *name_up)list_for_each_entry (bat, &console_session.ses_bat_list, bat_link) {if (index-- ==0 ) {return copy_to_user (name_up, bat->bat_name, len) ? - -EFAULT :0 ; + -EFAULT :0 ; } }@@ -956,7 +956,7 @@ lstcon_batch_info(char *name, lstcon_test_batch_ent_t *ent_up, int server, &test->tes_dst_grp->grp_ndl_list;if (dents_up !=NULL ) { - rc =lstcon_nodes_getent ((server ? srvlst: clilst), + rc =lstcon_nodes_getent ((server ? srvlst : clilst), index_p, ndent_p, dents_up);return rc; }@@ -1683,7 +1683,7 @@ int lstcon_session_match(lst_sid_t sid) {return (console_session.ses_id.ses_nid == sid.ses_nid && - console_session.ses_id.ses_stamp == sid.ses_stamp) ?1 :0 ; + console_session.ses_id.ses_stamp == sid.ses_stamp) ?1 :0 ; } static void --1.9.1
--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/1425078899-3052-1-git-send-email-dilekuzulmez%40gmail.com.
For more options, visit https://groups.google.com/d/optout.