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 <wangqing@vivo.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
@@ -517,10 +517,8 @@ static int cctrng_probe(struct platform_device *pdev)
|
|||||||
|
|
||||||
/* Then IRQ */
|
/* Then IRQ */
|
||||||
irq = platform_get_irq(pdev, 0);
|
irq = platform_get_irq(pdev, 0);
|
||||||
if (irq < 0) {
|
if (irq < 0)
|
||||||
dev_err(dev, "Failed getting IRQ resource\n");
|
|
||||||
return irq;
|
return irq;
|
||||||
}
|
|
||||||
|
|
||||||
/* parse sampling rate from device tree */
|
/* parse sampling rate from device tree */
|
||||||
rc = cc_trng_parse_sampling_ratio(drvdata);
|
rc = cc_trng_parse_sampling_ratio(drvdata);
|
||||||
|
|||||||
Reference in New Issue
Block a user