Message ID | 20200403111429.11876-1-tangbin@cmss.chinamobile.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | [v5] crypto: amlogic - Delete duplicate dev_err in meson_crypto_probe() | expand |
On Fri, Apr 03, 2020 at 07:14:29PM +0800, Tang Bin wrote: > When something goes wrong, platform_get_irq() will print an error message, > so in order to avoid the situation of repeat output,we should remove > dev_err here. > > Changes from v4: > - rewrite the code, because the code in v4 is wrong, sorry. > > Changes form v3: > - fix the theme writing error. > > Changes from v2: > - modify the theme format and content description. > - reformat the patch, it's the wrong way to resubmit a new patch that > should be modified on top of the original. The original piece is: > https://lore.kernel.org/patchwork/patch/1219611/ > > Changes from v1: > - the title has changed, because the description is not very detailed. > - the code has been modified, because it needs to match the theme. > > Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com> > --- Hello The changelog should not be in the commit message. You should set them after the "---" line Thanks
diff --git a/drivers/crypto/amlogic/amlogic-gxl-core.c b/drivers/crypto/amlogic/amlogic-gxl-core.c index 9d4ead2f7..411857fad 100644 --- a/drivers/crypto/amlogic/amlogic-gxl-core.c +++ b/drivers/crypto/amlogic/amlogic-gxl-core.c @@ -253,10 +253,8 @@ static int meson_crypto_probe(struct platform_device *pdev) mc->irqs = devm_kcalloc(mc->dev, MAXFLOW, sizeof(int), GFP_KERNEL); for (i = 0; i < MAXFLOW; i++) { mc->irqs[i] = platform_get_irq(pdev, i); - if (mc->irqs[i] < 0) { - dev_err(mc->dev, "Cannot get IRQ for flow %d\n", i); + if (mc->irqs[i] < 0) return mc->irqs[i]; - } err = devm_request_irq(&pdev->dev, mc->irqs[i], meson_irq_handler, 0, "gxl-crypto", mc);
When something goes wrong, platform_get_irq() will print an error message, so in order to avoid the situation of repeat output,we should remove dev_err here. Changes from v4: - rewrite the code, because the code in v4 is wrong, sorry. Changes form v3: - fix the theme writing error. Changes from v2: - modify the theme format and content description. - reformat the patch, it's the wrong way to resubmit a new patch that should be modified on top of the original. The original piece is: https://lore.kernel.org/patchwork/patch/1219611/ Changes from v1: - the title has changed, because the description is not very detailed. - the code has been modified, because it needs to match the theme. Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com> --- drivers/crypto/amlogic/amlogic-gxl-core.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)