Skip to contentSkip to conversation

staging: sm750fb: Remove unnecessary comments.

PATCH Superseded Elise Lennion 2 participants 2 messages Oct 13, 2016

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 staging: sm750fb: Remove unnecessary comments.

Comments are needed to help the reader to understand the code better.

Functions shouldn't have comments to restate their names.

---
 drivers/staging/sm750fb/ddk750_power.h | 8 --------
 1 file changed, 8 deletions(-)
drivers/staging/sm750fb/ddk750_power.h +0 -8
index ba0b3f5..7b24f11 100644
@@ -15,15 +15,7 @@ DPMS_t;
 }
 
 void ddk750_setDPMS(DPMS_t);
-
-/*
- * This function sets the current power mode
- */
 void set_power_mode(unsigned int powerMode);
-
-/*
- * This function sets current gate
- */
 void set_current_gate(unsigned int gate);
 
 /*
Signature · 1 line
2.7.4
#1 lore raw
Quoted 1 line · Elise Lennion

Comments are needed to help the reader to understand the code better.

This is not a helpful log message. It suggests that you are going to add comments. Actually, the whole commit message does not say anything about what you did. It would be better to say something like:

Remove function comments that merely restate the function name.

julia

Quoted 38 lines

Functions shouldn't have comments to restate their names.

---
 drivers/staging/sm750fb/ddk750_power.h | 8 --------
 1 file changed, 8 deletions(-)
drivers/staging/sm750fb/ddk750_power.h +0 -9
index ba0b3f5..7b24f11 100644
@@ -15,15 +15,7 @@ DPMS_t;
 }
 
 void ddk750_setDPMS(DPMS_t);
-
-/*
- * This function sets the current power mode
- */
 void set_power_mode(unsigned int powerMode);
-
-/*
- * This function sets current gate
- */
 void set_current_gate(unsigned int gate);
 
 /*
--

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/20161013023427.GA23337%40lennorien.com.
For more options, visit https://groups.google.com/d/optout.