summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorGokce Kuler <gokcekuler@gmail.com>2020-03-20 03:03:26 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-03-20 15:07:44 +0100
commit04ff8b51ae7e22a4d753a6ad70fa6fad0437a3be (patch)
tree3eb634e9d5f6828806f5f903f906e8e6ad6b3230 /drivers
parent3fce0276f98a5e4263735f86c5c35361fafa7a59 (diff)
staging: rtl8712: Remove unnecessary braces
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/rtl8712/rtl871x_mp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/rtl8712/rtl871x_mp.c b/drivers/staging/rtl8712/rtl871x_mp.c
index 1a39a96b726f..24020257bc58 100644
--- a/drivers/staging/rtl8712/rtl871x_mp.c
+++ b/drivers/staging/rtl8712/rtl871x_mp.c
@@ -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);