net: wan: remove redundant braces {}
authorPeng Li <lipeng321@huawei.com>
Tue, 18 May 2021 12:29:52 +0000 (20:29 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 May 2021 20:42:42 +0000 (13:42 -0700)
Braces {} are not necessary for single statement blocks,
this patch removes redundant braces {}.

Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wan/fsl_ucc_hdlc.c

index 7eac6a3e1cdee1e90de74fa17ce75e899a4bda1c..39f05fabbfa4c823c593a6b9979d26aa310ebbbf 100644 (file)
@@ -1171,9 +1171,8 @@ static int ucc_hdlc_probe(struct platform_device *pdev)
        ut_info->uf_info.irq = irq_of_parse_and_map(np, 0);
 
        uhdlc_priv = kzalloc(sizeof(*uhdlc_priv), GFP_KERNEL);
-       if (!uhdlc_priv) {
+       if (!uhdlc_priv)
                return -ENOMEM;
-       }
 
        dev_set_drvdata(&pdev->dev, uhdlc_priv);
        uhdlc_priv->dev = &pdev->dev;