serial: mxs-auart: Remove unneeded zeroing of 'ret'
authorFabio Estevam <fabio.estevam@freescale.com>
Wed, 14 Jan 2015 16:39:09 +0000 (14:39 -0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Feb 2015 18:11:25 +0000 (10:11 -0800)
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: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/mxs-auart.c

index b54b6a2a5774d32bc59f7b60a81bd5afef812a1a..d1298b6cc68e4e6f1f610959f57f94cf350650fd 100644 (file)
@@ -1226,7 +1226,7 @@ static int mxs_auart_probe(struct platform_device *pdev)
                        of_match_device(mxs_auart_dt_ids, &pdev->dev);
        struct mxs_auart_port *s;
        u32 version;
-       int ret = 0, irq;
+       int ret, irq;
        struct resource *r;
 
        s = devm_kzalloc(&pdev->dev, sizeof(*s), GFP_KERNEL);