net: wan: remove redundant braces {}
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>
This commit is contained in:
parent
23c2354124
commit
a4e5914776
@ -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);
|
ut_info->uf_info.irq = irq_of_parse_and_map(np, 0);
|
||||||
|
|
||||||
uhdlc_priv = kzalloc(sizeof(*uhdlc_priv), GFP_KERNEL);
|
uhdlc_priv = kzalloc(sizeof(*uhdlc_priv), GFP_KERNEL);
|
||||||
if (!uhdlc_priv) {
|
if (!uhdlc_priv)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
|
||||||
|
|
||||||
dev_set_drvdata(&pdev->dev, uhdlc_priv);
|
dev_set_drvdata(&pdev->dev, uhdlc_priv);
|
||||||
uhdlc_priv->dev = &pdev->dev;
|
uhdlc_priv->dev = &pdev->dev;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user