From: Fabio Estevam Date: Wed, 14 Jan 2015 16:39:09 +0000 (-0200) Subject: serial: mxs-auart: Remove unneeded zeroing of 'ret' X-Git-Tag: v4.0-rc1~81^2~44 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=5f9ba5b693ed6d639a3e6b47f4c6cd80e36f2547;p=karo-tx-linux.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/mxs-auart.c b/drivers/tty/serial/mxs-auart.c index b54b6a2a5774..d1298b6cc68e 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);