projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad23756
)
hwrng: pic32 - Fix W=1 unused variable warning
author
Herbert Xu
<herbert@gondor.apana.org.au>
Mon, 29 Jun 2020 08:04:04 +0000
(18:04 +1000)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Thu, 9 Jul 2020 08:25:13 +0000
(18:25 +1000)
This patch fixes an unused variable warning when this driver is
built-in with CONFIG_OF=n.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/pic32-rng.c
patch
|
blob
|
history
diff --git
a/drivers/char/hw_random/pic32-rng.c
b/drivers/char/hw_random/pic32-rng.c
index
81080cb
..
e8210c1
100644
(file)
--- a/
drivers/char/hw_random/pic32-rng.c
+++ b/
drivers/char/hw_random/pic32-rng.c
@@
-119,7
+119,7
@@
static int pic32_rng_remove(struct platform_device *pdev)
return 0;
}
-static const struct of_device_id pic32_rng_of_match[] = {
+static const struct of_device_id pic32_rng_of_match[]
__maybe_unused
= {
{ .compatible = "microchip,pic32mzda-rng", },
{ /* sentinel */ }
};