projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d759be
)
hwrng: cctrng - delete redundant printing of return value
author
Wang Qing
<wangqing@vivo.com>
Sat, 13 Mar 2021 07:47:42 +0000
(15:47 +0800)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Fri, 19 Mar 2021 10:59:47 +0000
(21:59 +1100)
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>
drivers/char/hw_random/cctrng.c
patch
|
blob
|
history
diff --git
a/drivers/char/hw_random/cctrng.c
b/drivers/char/hw_random/cctrng.c
index 102195ef376d2420e96090734eb0f0b2e4f1b600..302ffa354c2fda6cf59432b0af2650f55f9606a6 100644
(file)
--- 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);