staging: wilc1000: Enhance code formatting
PATCH 2/2 staging: wilc1000: Enhance code formatting
This trims line size at 80 characters and makes code easier to read.
Problem found with checkpatch.pl.
--- drivers/staging/wilc1000/coreconfigurator.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/staging/wilc1000/coreconfigurator.h +2 -1
@@ -123,7 +123,8 @@ struct disconnect_info {s32 wilc_parse_network_info (u8 *msg_buffer,struct network_info **ret_network_info);s32 wilc_parse_assoc_resp_info (u8 *buffer,u32 buffer_len, -struct connect_resp_info **ret_connect_resp_info); +struct connect_resp_info + **ret_connect_resp_info);void wilc_scan_complete_received (struct wilc *wilc,u8 *buffer,u32 length); void wilc_network_info_received(struct wilc *wilc, u8 *buffer,
Signature · 1 line
2.9.3
Quoted 14 lines · Tamara Diaconita
This trims line size at 80 characters and makes code easier to read.
Problem found with checkpatch.pl.
Signed-off-by Tamara Diaconita <[email protected]>--- drivers/staging/wilc1000/coreconfigurator.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/staging/wilc1000/coreconfigurator.h +0
-0
drivers/staging/wilc1000/coreconfigurator.h struct disconnect_info { · line 127
Quoted 6 lines
drivers/staging/wilc1000/coreconfigurator.h +2
-1@@ -123,7 +123,8 @@ struct disconnect_info {s32 wilc_parse_network_info (u8 *msg_buffer,struct network_info **ret_network_info);s32 wilc_parse_assoc_resp_info (u8 *buffer,u32 buffer_len, -struct connect_resp_info **ret_connect_resp_info); +struct connect_resp_info + **ret_connect_resp_info);
Tamara,
Here I might take the checkpath CHECK on alignment, rather than split the structure..
That is, do this:
s32 wilc_parse_assoc_resp_info(u8 *buffer, u32 buffer_len,
struct connect_resp_info **ret_connect_resp_info);
and live with this:
CHECK: Alignment should match open parenthesis #126: FILE: coreconfigurator.h:126:
+s32 wilc_parse_assoc_resp_info(u8 *buffer, u32 buffer_len,
+ struct connect_resp_info **ret_connect_resp_info);
It still looks better than the line over 80.
Let's ask Julia???
alisons
Quoted 12 lines
drivers/staging/wilc1000/coreconfigurator.h +0
-0void wilc_scan_complete_received (struct wilc *wilc,u8 *buffer,u32 length); void wilc_network_info_received(struct wilc *wilc, u8 *buffer,Signature · 8 lines
2.9.3 -- 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/20170309223059.7353-1-diaconita.tamara%40gmail.com. For more options, visit https://groups.google.com/d/optout.
Quoted 39 lines · Alison Schofield
Quoted 14 lines · Tamara Diaconita
This trims line size at 80 characters and makes code easier to read.
Problem found with checkpatch.pl.
Signed-off-by Tamara Diaconita <[email protected]>--- drivers/staging/wilc1000/coreconfigurator.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/staging/wilc1000/coreconfigurator.h +0
-0drivers/staging/wilc1000/coreconfigurator.h struct disconnect_info { · line 127
Quoted 6 lines
drivers/staging/wilc1000/coreconfigurator.h +2
-1@@ -123,7 +123,8 @@ struct disconnect_info {s32 wilc_parse_network_info (u8 *msg_buffer,struct network_info **ret_network_info);s32 wilc_parse_assoc_resp_info (u8 *buffer,u32 buffer_len, -struct connect_resp_info **ret_connect_resp_info); +struct connect_resp_info + **ret_connect_resp_info);Tamara,
Here I might take the checkpath CHECK on alignment, rather than split the structure..
That is, do this:
s32 wilc_parse_assoc_resp_info(u8 *buffer, u32
buffer_len,struct connect_resp_info **ret_connect_resp_info);and live with this:
CHECK: Alignment should match open parenthesis
#126: FILE: coreconfigurator.h:126:(quoted diff) +2
-0+s32 wilc_parse_assoc_resp_info(u8 *buffer, u32 buffer_len, + struct connect_resp_info **ret_connect_resp_info);
Quoted 3 lines
It still looks better than the line over 80.
Let's ask Julia???
I agree with Alison. Getting the whole declaration on one line within 80 characters is the best thing. Maybe the name of the variable could be shortened.
julia
Quoted 24 lines
alisons
Quoted 6 lines
drivers/staging/wilc1000/coreconfigurator.h +0
-1void wilc_scan_complete_received (struct wilc *wilc,u8 *buffer,u32 length); void wilc_network_info_received(struct wilc *wilc, u8 *buffer, --2.9.3
Quoted 6 lines
--
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/20170309223059.7353-1-diaconita.tamara%40gmail.com.
For more options, visit https://groups.google.com/d/optout.--
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/20170309232939.GB16746%40d830.WORKGROUP.
For more options, visit https://groups.google.com/d/optout.