Skip to contentSkip to conversation

staging: wimax: Fix block comment style issue in stack.c

PATCH Superseded Amrit Khera 3 participants 3 messages Feb 21, 2021 – Feb 22, 2021 Staging

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 staging: wimax: Fix block comment style issue in stack.c

This change fixes a checkpatch warning for "Block comments use * on subsequent lines".

---
Changes in v2:
- Removed the comment entirely, as suggested by Greg KH <[email protected]>

 drivers/staging/wimax/stack.c | 10 ----------
 1 file changed, 10 deletions(-)
drivers/staging/wimax/stack.c +0 -10
index ace24a6dfd2d..345a022810ef 100644
@@ -57,17 +57,7 @@ MODULE_PARM_DESC(debug,
 
 /*
  * Authoritative source for the RE_STATE_CHANGE attribute policy
- *
- * We don't really use it here, but /me likes to keep the definition
- * close to where the data is generated.
  */
-/*
-static const struct nla_policy wimax_gnl_re_status_change[WIMAX_GNL_ATTR_MAX + 1] = {
-	[WIMAX_GNL_STCH_STATE_OLD] = { .type = NLA_U8 },
-	[WIMAX_GNL_STCH_STATE_NEW] = { .type = NLA_U8 },
-};
-*/
-
 
 /*
  * Allocate a Report State Change message
Signature · 1 line
2.20.1
maintainer
#1 lore raw
Quoted 2 lines · Amrit Khera

This change fixes a checkpatch warning for "Block comments use * on subsequent lines".

That's not all this patch does, please be descriptive of what you really do and why you are doing it.

thanks,

greg k-h

#2 lore raw
In reply to Amrit Khera

drivers/staging/wimax/stack.c MODULE_PARM_DESC(debug, · line 59

Quoted 8 lines · Amrit Khera
drivers/staging/wimax/stack.c +0 -0
index ace24a6dfd2d..345a022810ef 100644
@@ -57,17 +57,7 @@ MODULE_PARM_DESC(debug,
 
 /*
  * Authoritative source for the RE_STATE_CHANGE attribute policy

Delete the whole comment. This sentence doesn't make any sense by itself once we have removed the rest.

drivers/staging/wimax/stack.c MODULE_PARM_DESC(debug, · line 68

Quoted 9 lines
drivers/staging/wimax/stack.c +0 -8
- *
- * We don't really use it here, but /me likes to keep the definition
- * close to where the data is generated.
  */
-/*
-static const struct nla_policy wimax_gnl_re_status_change[WIMAX_GNL_ATTR_MAX + 1] = {
-	[WIMAX_GNL_STCH_STATE_OLD] = { .type = NLA_U8 },
-	[WIMAX_GNL_STCH_STATE_NEW] = { .type = NLA_U8 },
-};

regards,
dan carpenter