From: Wang Qing Date: Sat, 13 Mar 2021 07:47:42 +0000 (+0800) Subject: hwrng: cctrng - delete redundant printing of return value X-Git-Tag: accepted/tizen/unified/20230118.172025~7441^2~120 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=befb1ddaece17e346550b6f2bb494ba58d67af43;p=platform%2Fkernel%2Flinux-rpi.git hwrng: cctrng - delete redundant printing of return value platform_get_irq() has already checked and printed the return value, the printing here is nothing special, it is not necessary at all. Signed-off-by: Wang Qing Signed-off-by: Herbert Xu --- diff --git a/drivers/char/hw_random/cctrng.c b/drivers/char/hw_random/cctrng.c index 102195e..302ffa3 100644 --- a/drivers/char/hw_random/cctrng.c +++ b/drivers/char/hw_random/cctrng.c @@ -517,10 +517,8 @@ static int cctrng_probe(struct platform_device *pdev) /* Then IRQ */ irq = platform_get_irq(pdev, 0); - if (irq < 0) { - dev_err(dev, "Failed getting IRQ resource\n"); + if (irq < 0) return irq; - } /* parse sampling rate from device tree */ rc = cc_trng_parse_sampling_ratio(drvdata);