diff mbox

[TRIVIAL,infiniband-diags] ibdiag_common.c: Fix cosmetic formatting issue

Message ID 5c06ade8-c86d-b59c-0ee5-c8309af69676@dev.mellanox.co.il (mailing list archive)
State Accepted, archived
Delegated to: Ira Weiny
Headers show

Commit Message

Hal Rosenstock April 27, 2017, 4:56 p.m. UTC
Change leading spaces into a tab

Signed-off-by: Hal Rosenstock <hal@mellanox.com>
---
 src/ibdiag_common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Ira Weiny April 27, 2017, 9:27 p.m. UTC | #1
On Thu, Apr 27, 2017 at 12:56:47PM -0400, Hal Rosenstock wrote:
> 
> Change leading spaces into a tab
> 
> Signed-off-by: Hal Rosenstock <hal@mellanox.com>

Thanks applied,
Ira

> ---
>  src/ibdiag_common.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/ibdiag_common.c b/src/ibdiag_common.c
> index cbade5b..1f91269 100644
> --- a/src/ibdiag_common.c
> +++ b/src/ibdiag_common.c
> @@ -850,7 +850,7 @@ int vsnprint_field(char *buf, size_t n, enum MAD_FIELDS f, int spacing,
>  	int len, i, ret;
>  
>  	len = strlen(mad_field_name(f));
> -        if (len + 2 > n || spacing + 1 > n)
> +	if (len + 2 > n || spacing + 1 > n)
>  		return 0;
>  
>  	strncpy(buf, mad_field_name(f), n);
> -- 
> 2.8.4
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/src/ibdiag_common.c b/src/ibdiag_common.c
index cbade5b..1f91269 100644
--- a/src/ibdiag_common.c
+++ b/src/ibdiag_common.c
@@ -850,7 +850,7 @@  int vsnprint_field(char *buf, size_t n, enum MAD_FIELDS f, int spacing,
 	int len, i, ret;
 
 	len = strlen(mad_field_name(f));
-        if (len + 2 > n || spacing + 1 > n)
+	if (len + 2 > n || spacing + 1 > n)
 		return 0;
 
 	strncpy(buf, mad_field_name(f), n);