[OPW,kernel] staging: ft1000: convert formal get_handshake() function header to single line comment
diff mbox

Message ID 20131014015246.GA19636@kelleynnn-HP-Compaq-8510w
State Accepted
Headers show

Commit Message

Kelley Nielsen Oct. 14, 2013, 1:52 a.m. UTC
As per coding style,C99 comments are not allowed
also, the formal header contained empty space and
redundant information that's right there in the function

Signed-off-by: Kelley Nielsen <kelleynnn@gmail.com>
---
 drivers/staging/ft1000/ft1000-usb/ft1000_download.c | 15 +--------------
 1 file changed, 1 insertion(+), 14 deletions(-)

Comments

Greg Kroah-Hartman Oct. 14, 2013, 4:26 p.m. UTC | #1
On Sun, Oct 13, 2013 at 06:52:46PM -0700, Kelley Nielsen wrote:
> As per coding style,C99 comments are not allowed
> also, the formal header contained empty space and
> redundant information that's right there in the function
> 
> Signed-off-by: Kelley Nielsen <kelleynnn@gmail.com>

Applied, thanks.

greg k-h

Patch
diff mbox

diff --git a/drivers/staging/ft1000/ft1000-usb/ft1000_download.c b/drivers/staging/ft1000/ft1000-usb/ft1000_download.c
index fc3bd68..6d9ad10 100644
--- a/drivers/staging/ft1000/ft1000-usb/ft1000_download.c
+++ b/drivers/staging/ft1000/ft1000-usb/ft1000_download.c
@@ -157,20 +157,7 @@  static u32 check_usb_db(struct ft1000_usb *ft1000dev)
 	return HANDSHAKE_MAG_TIMEOUT_VALUE;
 }
 
-//---------------------------------------------------------------------------
-// Function:    get_handshake
-//
-// Parameters:  struct ft1000_usb  - device structure
-//              u16 expected_value - the handshake value expected
-//
-// Returns:     handshakevalue - success
-//              HANDSHAKE_TIMEOUT_VALUE - failure
-//
-// Description: This function gets the handshake and compare with the expected value
-//
-// Notes:
-//
-//---------------------------------------------------------------------------
+/* gets the handshake and compares it with the expected value */
 static u16 get_handshake(struct ft1000_usb *ft1000dev, u16 expected_value)
 {
 	u16 handshake;