]> git.baikalelectronics.ru Git - kernel.git/commitdiff
staging: rtl8712: Remove unnecessary braces
authorGokce Kuler <gokcekuler@gmail.com>
Fri, 20 Mar 2020 00:03:26 +0000 (03:03 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Mar 2020 14:07:44 +0000 (15:07 +0100)
Remove unnecessary braces for single statement block

Signed-off-by: Gokce Kuler <gokcekuler@gmail.com>
Link: https://lore.kernel.org/r/20200320000326.GA9349@siyah2
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/rtl871x_mp.c

index 1a39a96b726f0fa3628aa19e6311a023fe3cb64d..24020257bc58372c52862200b65fef7c28b137e6 100644 (file)
@@ -44,9 +44,9 @@ static int init_mp_priv(struct mp_priv *pmp_priv)
        pmp_priv->pallocated_mp_xmitframe_buf = kmalloc(NR_MP_XMITFRAME *
                                sizeof(struct mp_xmit_frame) + 4,
                                GFP_ATOMIC);
-       if (!pmp_priv->pallocated_mp_xmitframe_buf) {
+       if (!pmp_priv->pallocated_mp_xmitframe_buf)
                return -ENOMEM;
-       }
+
        pmp_priv->pmp_xmtframe_buf = pmp_priv->pallocated_mp_xmitframe_buf +
                         4 -
                         ((addr_t)(pmp_priv->pallocated_mp_xmitframe_buf) & 3);