staging: rtl8712: fix checkpatch long-line warning
authorAiman Najjar <aiman.najjar@hurranet.com>
Sun, 29 Mar 2020 18:57:43 +0000 (14:57 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Apr 2020 06:55:29 +0000 (08:55 +0200)
This patch fixes these two long-line checkpatch warnings
in rtl871x_xmit.c:

WARNING: line over 80 characters
\#74: FILE: drivers/staging//rtl8712/rtl871x_xmit.c:74:
+       * Please allocate memory with the sz = (struct xmit_frame) * NR_XMITFRAME,

WARNING: line over 80 characters
\#79: FILE: drivers/staging//rtl8712/rtl871x_xmit.c:79:
+               kmalloc(NR_XMITFRAME * sizeof(struct xmit_frame) + 4, GFP_ATOMIC);

Signed-off-by: Aiman Najjar <aiman.najjar@hurranet.com>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/acd523d0d24cc81fae9eb933a066d87815587cee.1585508171.git.aiman.najjar@hurranet.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/rtl871x_xmit.c

index f0b8533..628e4ba 100644 (file)
@@ -71,12 +71,13 @@ int _r8712_init_xmit_priv(struct xmit_priv *pxmitpriv,
        _init_queue(&pxmitpriv->apsd_queue);
        _init_queue(&pxmitpriv->free_xmit_queue);
        /*
-        * Please allocate memory with the sz = (struct xmit_frame) * NR_XMITFRAME,
+        * Please allocate memory with sz = (struct xmit_frame) * NR_XMITFRAME,
         * and initialize free_xmit_frame below.
         * Please also apply  free_txobj to link_up all the xmit_frames...
         */
        pxmitpriv->pallocated_frame_buf =
-               kmalloc(NR_XMITFRAME * sizeof(struct xmit_frame) + 4, GFP_ATOMIC);
+               kmalloc(NR_XMITFRAME * sizeof(struct xmit_frame) + 4,
+                       GFP_ATOMIC);
        if (!pxmitpriv->pallocated_frame_buf) {
                pxmitpriv->pxmit_frame_buf = NULL;
                return -ENOMEM;