diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2015-01-14 14:39:09 -0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-02-02 10:11:25 -0800 |
commit | 5f9ba5b693ed6d639a3e6b47f4c6cd80e36f2547 (patch) | |
tree | c6b1eb24221f0e20722a96b3f4714791d0a28268 /drivers/tty/serial/mxs-auart.c | |
parent | 99c932c26d61f2c225f8f8e00dbea404646b9166 (diff) | |
download | op-kernel-dev-5f9ba5b693ed6d639a3e6b47f4c6cd80e36f2547.zip op-kernel-dev-5f9ba5b693ed6d639a3e6b47f4c6cd80e36f2547.tar.gz |
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: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/mxs-auart.c')
-rw-r--r-- | drivers/tty/serial/mxs-auart.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/mxs-auart.c b/drivers/tty/serial/mxs-auart.c index b54b6a2..d1298b6 100644 --- a/drivers/tty/serial/mxs-auart.c +++ b/drivers/tty/serial/mxs-auart.c @@ -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); |