Skip to content

Commit

Permalink
serial: mxs-auart: Remove unneeded zeroing of 'ret'
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Fabio Estevam authored and Greg Kroah-Hartman committed Feb 2, 2015
1 parent 99c932c commit 5f9ba5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/tty/serial/mxs-auart.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5f9ba5b

Please sign in to comment.