Skip to contentSkip to conversation

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

PATCH Superseded Amrit Khera 2 participants 2 messages Feb 19, 2021 – Feb 21, 2021 Staging

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 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".

---
 drivers/staging/wimax/stack.c | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
drivers/staging/wimax/stack.c +6 -5
index ace24a6dfd2d..781426000015 100644
@@ -62,11 +62,12 @@ MODULE_PARM_DESC(debug,
  * 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 },
-};
-*/
+ * 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 },
+ * };
+ */
 
 
 /*
Signature · 1 line
2.20.1
maintainer
#1 lore raw
Quoted 17 lines · Amrit Khera

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

---
 drivers/staging/wimax/stack.c | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
drivers/staging/wimax/stack.c +0 -1
index ace24a6dfd2d..781426000015 100644
@@ -62,11 +62,12 @@ MODULE_PARM_DESC(debug,
  * close to where the data is generated.
  */
 /*
-static const struct nla_policy wimax_gnl_re_status_change[WIMAX_GNL_ATTR_MAX + 1] = {

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

Quoted 10 lines
drivers/staging/wimax/stack.c +6 -4
-	[WIMAX_GNL_STCH_STATE_OLD] = { .type = NLA_U8 },
-	[WIMAX_GNL_STCH_STATE_NEW] = { .type = NLA_U8 },
-};
-*/
+ * 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 },
+ * };
+ */

Why not just remove this variable entirely? It's obviously not needed, so just delete the thing.

thanks,

greg k-h