From: Gokce Kuler Date: Fri, 20 Mar 2020 00:03:26 +0000 (+0300) Subject: staging: rtl8712: Remove unnecessary braces X-Git-Tag: v5.7-rc1~190^2~80 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=04ff8b51ae7e22a4d753a6ad70fa6fad0437a3be;p=thirdparty%2Flinux.git staging: rtl8712: Remove unnecessary braces Remove unnecessary braces for single statement block Signed-off-by: Gokce Kuler Link: https://lore.kernel.org/r/20200320000326.GA9349@siyah2 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8712/rtl871x_mp.c b/drivers/staging/rtl8712/rtl871x_mp.c index 1a39a96b726f0..24020257bc583 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);