staging: vt6655: card.c: Fixing multiple assignments
authorNick Rosbrook <nrosbrook@mail.smcvt.edu>
Wed, 2 Nov 2016 01:15:07 +0000 (21:15 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Nov 2016 10:31:12 +0000 (11:31 +0100)
Running checkpath on card.c shows two locations where
multiple assignments are used.

This patch modifies the assignments into single assignments.

Signed-off-by: Nick Rosbrook <nrosbrook@mail.smcvt.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/card.c

index 928c336f9d83b517dff92db494d3cf5161dc525d..e0c92818ed707fd1644340d12007a85ebe1d2939 100644 (file)
@@ -524,8 +524,11 @@ CARDvSafeResetTx(
        struct vnt_tx_desc *pCurrTD;
 
        /* initialize TD index */
-       priv->apTailTD[0] = priv->apCurrTD[0] = &(priv->apTD0Rings[0]);
-       priv->apTailTD[1] = priv->apCurrTD[1] = &(priv->apTD1Rings[0]);
+       priv->apTailTD[0] = &(priv->apTD0Rings[0]);
+       priv->apCurrTD[0] = &(priv->apTD0Rings[0]);
+
+       priv->apTailTD[1] = &(priv->apTD1Rings[0]);
+       priv->apCurrTD[1] = &(priv->apTD1Rings[0]);
 
        for (uu = 0; uu < TYPE_MAXTD; uu++)
                priv->iTDUsed[uu] = 0;