diff mbox

[OPW,kernel,3/4] staging: ft1000: scram_boot_dwnld comment issues fixed

Message ID 2c65a0fcc3d039cac49823a26b0b781fdf2de6cf.1382297596.git.kelleynnn@gmail.com
State New, archived
Headers show

Commit Message

Kelley Nielsen Oct. 20, 2013, 7:50 p.m. UTC
This patch fixes the comment coding style issues in the newly extracted
function scram_boot_dwnld. C99 comments have been changed to /* */
style, extra delimiters have been removed from single line comments so
that the comment fits on one line, pointer deference operators have been
added to commented out lines of code.

Signed-off-by: Kelley Nielsen <kelleynnn@gmail.com>
---
 .../staging/ft1000/ft1000-usb/ft1000_download.c    | 26 +++++++++-------------
 1 file changed, 10 insertions(+), 16 deletions(-)
diff mbox

Patch

diff --git a/drivers/staging/ft1000/ft1000-usb/ft1000_download.c b/drivers/staging/ft1000/ft1000-usb/ft1000_download.c
index b4058ff..83535c7 100644
--- a/drivers/staging/ft1000/ft1000-usb/ft1000_download.c
+++ b/drivers/staging/ft1000/ft1000-usb/ft1000_download.c
@@ -585,9 +585,7 @@  static u16 scram_boot_dwnld(struct ft1000_usb *ft1000dev, u16 *hshake,
 	ft1000dev->bootmode = 1;
 	*hshake = get_handshake(ft1000dev, HANDSHAKE_REQUEST);
 		if (*hshake == HANDSHAKE_REQUEST) {
-		/*
-		 * Get type associated with the request.
-		 */
+		/* Get type associated with the request. */
 		*request = get_request_type(ft1000dev);
 		switch (*request) {
 		case REQUEST_RUN_ADDRESS:
@@ -605,17 +603,17 @@  static u16 scram_boot_dwnld(struct ft1000_usb *ft1000dev, u16 *hshake,
 			/* Reposition ptrs to beginning of code section */
 			*s_file = (u16 *) (*boot_end);
 			*c_file = (u8 *) (*boot_end);
-			//DEBUG("FT1000:download:s_file = 0x%8x\n", (int)s_file);
-			//DEBUG("FT1000:download:c_file = 0x%8x\n", (int)c_file);
+			/* DEBUG("FT1000:download:s_file = 0x%8x\n", (int)*s_file); */
+			/* DEBUG("FT1000:download:c_file = 0x%8x\n", (int)*c_file); */
 			*state = STATE_CODE_DWNLD;
 			ft1000dev->fcodeldr = 1;
 			break;
 		case REQUEST_CODE_SEGMENT:
-			//DEBUG("FT1000:REQUEST_CODE_SEGMENT\n");
+			/* DEBUG("FT1000:REQUEST_CODE_SEGMENT\n"); */
 			*word_length =
 			    get_request_value(ft1000dev);
-			//DEBUG("FT1000:word_length = 0x%x\n", (int)word_length);
-			//NdisMSleep (100);
+			/* DEBUG("FT1000:word_length = 0x%x\n", (int)*word_length); */
+			/* NdisMSleep (100); */
 			if (*word_length > MAX_LENGTH) {
 				DEBUG
 				    ("FT1000:download:Download error: Max length exceeded\n");
@@ -624,18 +622,14 @@  static u16 scram_boot_dwnld(struct ft1000_usb *ft1000dev, u16 *hshake,
 			}
 			if ((*word_length * 2 + *c_file) >
 			    *boot_end) {
-				/*
-				 * Error, beyond boot code range.
-				 */
+				/* Error, beyond boot code range. */
 				DEBUG
 				    ("FT1000:download:Download error: Requested len=%d exceeds BOOT code boundary.\n",
 				     (int)*word_length);
 				status = STATUS_FAILURE;
 				break;
 			}
-			/*
-			 * Position ASIC DPRAM auto-increment pointer.
-			 */
+			/* Position ASIC DPRAM auto-increment pointer. */
 			*dpram = (u16) DWNLD_MAG1_PS_HDR_LOC;
 			if (*word_length & 0x1)
 				*word_length++;
@@ -644,7 +638,7 @@  static u16 scram_boot_dwnld(struct ft1000_usb *ft1000dev, u16 *hshake,
 			status =
 			    write_blk(ft1000dev, s_file,
 				      c_file, *word_length);
-			//DEBUG("write_blk returned %d\n", status);
+			/* DEBUG("write_blk returned %d\n", status); */
 			break;
 		default:
 			DEBUG
@@ -665,7 +659,7 @@  static u16 scram_boot_dwnld(struct ft1000_usb *ft1000dev, u16 *hshake,
 		status = STATUS_FAILURE;
 	}
 
-return status;
+	return status;
 }
 
 /* Scramble downloader for Harley based ASIC via USB interface */