Skip to content

Commit

Permalink
ste_dma40: Rename jump labels in d40_dmaengine_init()
Browse files Browse the repository at this point in the history
Adjust jump labels according to the current Linux coding style convention.

Signed-off-by: Markus Elfring <[email protected]>
Reviewed-by: Linus Walleij <[email protected]>
Signed-off-by: Vinod Koul <[email protected]>
  • Loading branch information
elfring authored and Vinod Koul committed Sep 26, 2016
1 parent d7b7ecc commit c990993
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions drivers/dma/ste_dma40.c
Original file line number Diff line number Diff line change
Expand Up @@ -2891,7 +2891,7 @@ static int __init d40_dmaengine_init(struct d40_base *base,

if (err) {
d40_err(base->dev, "Failed to register slave channels\n");
goto failure1;
goto exit;
}

d40_chan_init(base, &base->dma_memcpy, base->log_chans,
Expand All @@ -2908,7 +2908,7 @@ static int __init d40_dmaengine_init(struct d40_base *base,
if (err) {
d40_err(base->dev,
"Failed to register memcpy only channels\n");
goto failure2;
goto unregister_slave;
}

d40_chan_init(base, &base->dma_both, base->phy_chans,
Expand All @@ -2926,14 +2926,14 @@ static int __init d40_dmaengine_init(struct d40_base *base,
if (err) {
d40_err(base->dev,
"Failed to register logical and physical capable channels\n");
goto failure3;
goto unregister_memcpy;
}
return 0;
failure3:
unregister_memcpy:
dma_async_device_unregister(&base->dma_memcpy);
failure2:
unregister_slave:
dma_async_device_unregister(&base->dma_slave);
failure1:
exit:
return err;
}

Expand Down

0 comments on commit c990993

Please sign in to comment.