Skip to contentSkip to conversation

staging: dgnc: remove unnecessary comments

PATCH In review Aastha Gupta 2 participants 2 messages Sep 15, 2017 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: dgnc: remove unnecessary comments

This patch removes unnecessary comments. These comments are already there before the structure definitions.

---
 drivers/staging/dgnc/dgnc_driver.h | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/staging/dgnc/dgnc_driver.h +1 -3
index 764d6fe..1d1fa83 100644
@@ -162,10 +162,8 @@ struct dgnc_board {
 	unsigned char	vpd[128];
 	unsigned char	serial_num[20];
 
-	/* used to protect the board */
 	spinlock_t	bd_lock;
 
-	/*  Protect poller tasklet and interrupt routine from each other. */
 	spinlock_t	bd_intr_lock;
 
 	uint		state;
@@ -330,7 +328,7 @@ struct channel_t {
 	struct un_t	ch_tun;
 	struct un_t	ch_pun;
 
-	spinlock_t	ch_lock; /* provide for serialization */
+	spinlock_t	ch_lock;
 	wait_queue_head_t ch_flags_wait;
 
 	uint		ch_portnum;
Signature · 1 line
2.7.4
#1 lore raw
Quoted 2 lines · Aastha Gupta

This patch removes unnecessary comments. These comments are already there before the structure definitions.

These seem to have been added on purpose, in e14047e4e3b54 that otherwise cleans up the comments. Perhaps if you remove them, then checkpatch will complain about the locks not being commented?

julia

Quoted 40 lines
---
 drivers/staging/dgnc/dgnc_driver.h | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/staging/dgnc/dgnc_driver.h +1 -4
index 764d6fe..1d1fa83 100644
@@ -162,10 +162,8 @@ struct dgnc_board {
 	unsigned char	vpd[128];
 	unsigned char	serial_num[20];
 
-	/* used to protect the board */
 	spinlock_t	bd_lock;
 
-	/*  Protect poller tasklet and interrupt routine from each other. */
 	spinlock_t	bd_intr_lock;
 
 	uint		state;
@@ -330,7 +328,7 @@ struct channel_t {
 	struct un_t	ch_tun;
 	struct un_t	ch_pun;
 
-	spinlock_t	ch_lock; /* provide for serialization */
+	spinlock_t	ch_lock;
 	wait_queue_head_t ch_flags_wait;
 
 	uint		ch_portnum;
--

2.7.4

--
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/1505488080-7145-1-git-send-email-aastha.gupta4104%40gmail.com.
For more options, visit https://groups.google.com/d/optout.