]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
drivers/staging/rtl8192u: style nonstyled comments
authorChristian Müller <muellerch-privat@web.de>
Mon, 1 Jul 2019 08:27:07 +0000 (10:27 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Jul 2019 16:32:09 +0000 (18:32 +0200)
The coding-styles.rst states, that multiline comments should
allways contain a leading "*" in each line.
For multiline comments in general they

/*
 * should look
 * like this.
 */

For multiline comments in either net/ or drivers/net/ however,
they should

/* omit
 * the first
 * empty line.
 */

Since this file is part of a networking driver, the goal for it would
be to reside in drivers/net/ one day.

This patch changes comments, that were in neither form of the two listed
above, to have the style that is specified for drivers/net/.

Signed-off-by: Christian Müller <muellerch-privat@web.de>
Signed-off-by: Felix Trommer <felix.trommer@hotmail.de>
Link: https://lore.kernel.org/r/20190701082707.25198-2-muellerch-privat@web.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/r8192U_dm.c

index d592b20c5a6b2608fe1ad5e57ac3c13d0cda02db..ade14ef0573097e5a3041f11f1c63893ebd3c1ce 100644 (file)
@@ -332,9 +332,10 @@ static void dm_check_rate_adaptive(struct net_device *dev)
                                ((bshort_gi_enabled) ? BIT(31) : 0);
 
                /* 2007/10/08 MH We support RA smooth scheme now. When it is the first
-                  time to link with AP. We will not change upper/lower threshold. If
-                  STA stay in high or low level, we must change two different threshold
-                  to prevent jumping frequently. */
+                * time to link with AP. We will not change upper/lower threshold. If
+                * STA stay in high or low level, we must change two different threshold
+                * to prevent jumping frequently.
+                */
                if (pra->ratr_state == DM_RATR_STA_HIGH) {
                        HighRSSIThreshForRA     = pra->high2low_rssi_thresh_for_ra;
                        LowRSSIThreshForRA      = (priv->CurrentChannelBW != HT_CHANNEL_WIDTH_20) ?
@@ -1726,10 +1727,12 @@ static void dm_ctrl_initgain_byrssi_by_fwfalse_alarm(
        pHalData->UndecoratedSmoothedPWDB, DM_DigTable.RssiLowThresh,
        DM_DigTable.RssiHighThresh, DM_DigTable.Dig_State);*/
        /* 1. When RSSI decrease, We have to judge if it is smaller than a threshold
-                 and then execute the step below. */
+        * and then execute the step below.
+        */
        if (priv->undecorated_smoothed_pwdb <= dm_digtable.rssi_low_thresh) {
                /* 2008/02/05 MH When we execute silent reset, the DIG PHY parameters
-                  will be reset to init value. We must prevent the condition. */
+                * will be reset to init value. We must prevent the condition.
+                */
                if (dm_digtable.dig_state == DM_STA_DIG_OFF &&
                    (priv->reset_count == reset_cnt)) {
                        return;
@@ -1774,7 +1777,8 @@ static void dm_ctrl_initgain_byrssi_by_fwfalse_alarm(
        }
 
        /* 2. When RSSI increase, We have to judge if it is larger than a threshold
-                 and then execute the step below.  */
+        * and then execute the step below.
+        */
        if (priv->undecorated_smoothed_pwdb >= dm_digtable.rssi_high_thresh) {
                u8 reset_flag = 0;
 
@@ -2240,11 +2244,10 @@ static void dm_ctstoself(struct net_device *dev)
                pHTInfo->IOTAction &= ~HT_IOT_ACT_FORCED_CTS2SELF;
                return;
        }
-       /*
-       1. Uplink
-       2. Linksys350/Linksys300N
-       3. <50 disable, >55 enable
-       */
+       /* 1. Uplink
+        * 2. Linksys350/Linksys300N
+        * 3. <50 disable, >55 enable
+        */
 
        if (pHTInfo->IOTPeer == HT_IOT_PEER_BROADCOM) {
                curTxOkCnt = priv->stats.txbytesunicast - lastTxOkCnt;
@@ -2321,7 +2324,8 @@ void dm_rf_pathcheck_workitemcallback(struct work_struct *work)
        u8 rfpath = 0, i;
 
        /* 2008/01/30 MH After discussing with SD3 Jerry, 0xc04/0xd04 register will
-          always be the same. We only read 0xc04 now. */
+        * always be the same. We only read 0xc04 now.
+        */
        read_nic_byte(dev, 0xc04, &rfpath);
 
        /* Check Bit 0-3, it means if RF A-D is enabled. */