Commit 5f9ba5b6 authored by Fabio Estevam's avatar Fabio Estevam Committed by Greg Kroah-Hartman

serial: mxs-auart: Remove unneeded zeroing of 'ret'

There is no need to explicitly zero the 'ret' variable as it is properly
initialized in a few lines below as:

ret = serial_mxs_probe_dt(s, pdev);

Remove the unneeded zeroing of 'ret'.
Signed-off-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 99c932c2
...@@ -1226,7 +1226,7 @@ static int mxs_auart_probe(struct platform_device *pdev) ...@@ -1226,7 +1226,7 @@ static int mxs_auart_probe(struct platform_device *pdev)
of_match_device(mxs_auart_dt_ids, &pdev->dev); of_match_device(mxs_auart_dt_ids, &pdev->dev);
struct mxs_auart_port *s; struct mxs_auart_port *s;
u32 version; u32 version;
int ret = 0, irq; int ret, irq;
struct resource *r; struct resource *r;
s = devm_kzalloc(&pdev->dev, sizeof(*s), GFP_KERNEL); s = devm_kzalloc(&pdev->dev, sizeof(*s), GFP_KERNEL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment