Skip to contentSkip to conversation

Staging: Fixed coding style warning

PATCH In review Panos Vlachos 3 participants 3 messages Apr 13, 2016 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: Fixed coding style warning

Fixed coding style warning

---
 drivers/staging/lustre/lnet/lnet/nidstrings.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/lustre/lnet/lnet/nidstrings.c +1 -1
index ebf468f..f532e44 100644
@@ -197,7 +197,7 @@ add_nidrange(const struct cfs_lstr *src,
 	struct netstrfns *nf;
 	struct nidrange *nr;
 	int endlen;
-	unsigned netnum;
+	int netnum;
 
 	if (src->ls_len >= LNET_NIDSTR_SIZE)
 		return NULL;
Signature · 1 line
1.9.1
#1 lore raw
Quoted 1 line · Panos Vlachos

Fixed coding style warning

[]

drivers/staging/lustre/lnet/lnet/nidstrings.c

Quoted 1 line
drivers/staging/lustre/lnet/lnet/nidstrings.c +0 -0

[]

drivers/staging/lustre/lnet/lnet/nidstrings.c add_nidrange(const struct cfs_lstr *src, · line 200

Quoted 6 lines
drivers/staging/lustre/lnet/lnet/nidstrings.c +1 -1
@@ -197,7 +197,7 @@ add_nidrange(const struct cfs_lstr *src,
  	struct netstrfns *nf;
  	struct nidrange *nr;
  	int endlen;
-	unsigned netnum;
+	int netnum;

Why change the type from unsigned to signed?

#2 lore raw
In reply to Panos Vlachos
Quoted 1 line · Panos Vlachos

Fixed coding style warning

What warning?

And always put the driver name in the subject so we know where to merge this to.

And finally, use get_maintainer.pl to determine who to send this to.

thanks,

greg k-h