Commit a4e59147 authored by Peng Li's avatar Peng Li Committed by David S. Miller
Browse files

net: wan: remove redundant braces {}



Braces {} are not necessary for single statement blocks,
this patch removes redundant braces {}.

Signed-off-by: default avatarPeng Li <lipeng321@huawei.com>
Signed-off-by: default avatarGuangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 23c23541
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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;