Staging: rtl8192u: Change from // to /* */
PATCH 1/1 Staging: rtl8192u: Change from // to /* */
Remove the all '//' and instead of '/* */' put.
This Error found with checkpatch.pl
Signed-off-by Hatice ERTURK <[email protected]>
--- drivers/staging/rtl8192u/r819xU_firmware.c | 38 +++++++++++++++--------------- 1 file changed, 19 insertions(+), 19 deletions(-)
drivers/staging/rtl8192u/r819xU_firmware.c +19 -19
@@ -37,7 +37,7 @@ static bool fw_download_code(struct net_device *dev, u8 *code_virtual_address,bool rt_status = true;u16 frag_threshold;u16 frag_length, frag_offset =0 ; -//u16 total_size; +/* u16 total_size; */ int i;rt_firmware *pfirmware = priv->pFirmware;
@@ -48,7 +48,7 @@ static bool fw_download_code(struct net_device *dev, u8 *code_virtual_address,u8 index;firmware_init_param (dev); -//Fragmentation might be required +/* Fragmentation might be required */ frag_threshold = pfirmware->cmdpacket_frag_thresold; do { if ((buffer_len - frag_offset) > frag_threshold) {
@@ -107,19 +107,19 @@ static bool fw_download_code(struct net_device *dev, u8 *code_virtual_address, } -//----------------------------------------------------------------------------- -// Procedure: Check whether main code is download OK. If OK, turn on CPU -// -// Description: CPU register locates in different page against general register. -// Switch to CPU register in the begin and switch back before return -// -// -// Arguments: The pointer of the adapter -// -// Returns: -// NDIS_STATUS_FAILURE - the following initialization process should be terminated -// NDIS_STATUS_SUCCESS - if firmware initialization process success -//----------------------------------------------------------------------------- +/* ----------------------------------------------------------------------------- +Procedure: Check whether main code is download OK. If OK, turn on CPU + +Description: CPU register locates in different page against general register. +Switch to CPU register in the begin and switch back before return + + +Arguments: The pointer of the adapter + +Returns: +NDIS_STATUS_FAILURE - the following initialization process should be terminated +NDIS_STATUS_SUCCESS - if firmware initialization process success +----------------------------------------------------------------------------- */ static bool CPUcheck_maincodeok_turnonCPU (struct net_device *dev) {bool rt_status = true;
@@ -222,7 +222,7 @@ bool init_firmware(struct net_device *dev)/* it is called by reset */ rst_opt =OPT_SYSTEM_RESET ; starting_state =FW_INIT_STEP0_BOOT ; -// TODO: system reset +/* TODO: system reset */ }else if (pfirmware->firmware_status ==FW_STATUS_5_READY ) {/* it is called by Initialize */
@@ -291,8 +291,8 @@ bool init_firmware(struct net_device *dev)* will set polling bit when firmware code is also configured */ pfirmware->firmware_status =FW_STATUS_1_MOVE_BOOT_CODE ; -//mdelay(1000); -/* +/* mdelay(1000); +* * To initialize IMEM, CPU move code from 0x80000080, * hence, we send 0x80 byte packet */
@@ -330,7 +330,7 @@ bool init_firmware(struct net_device *dev) }RT_TRACE (COMP_FIRMWARE ,"Firmware Download Success\n" ); -//assert(pfirmware->firmware_status == FW_STATUS_5_READY, ("Firmware Download Fail\n")); +/* assert(pfirmware->firmware_status == FW_STATUS_5_READY, ("Firmware Download Fail\n")); */ return rt_status;
Signature · 1 line
1.9.1
drivers/staging/rtl8192u/r819xU_firmware.c static bool fw_download_code(struct net_device *dev, u8 *code_virtual_address, · line 122
Quoted 13 lines
drivers/staging/rtl8192u/r819xU_firmware.c +13
-0+/* ----------------------------------------------------------------------------- +Procedure: Check whether main code is download OK. If OK, turn on CPU + +Description: CPU register locates in different page against general register. +Switch to CPU register in the begin and switch back before return + + +Arguments: The pointer of the adapter + +Returns: +NDIS_STATUS_FAILURE - the following initialization process should be terminated +NDIS_STATUS_SUCCESS - if firmware initialization process success +----------------------------------------------------------------------------- */
This is not the standard way ofmaking a multi-line comment. It should have
* down the left side. You should be able to find an example at the top of any file.
In some of the other changes there are comments on code. It has been stated that such code should just be discarded.
julia