Skip to contentSkip to conversation

hwrng: core: Remove duplicated include in core.c

PATCH In review Yang Li 2 participants 2 messages Feb 15, 2022 – Feb 23, 2022

Subsystems (2)
lore
Share & tools
lore

Yang Li

author
#0 lore raw

PATCH 1/1 hwrng: core: Remove duplicated include in core.c

Fix following includecheck warning:
./drivers/char/hw_random/core.c: linux/random.h is included more than once.

---
 drivers/char/hw_random/core.c | 1 -
 1 file changed, 1 deletion(-)
drivers/char/hw_random/core.c +0 -1
index be2953aa5145..94626f533361 100644
@@ -21,7 +21,6 @@
 #include <linux/sched/signal.h>
 #include <linux/miscdevice.h>
 #include <linux/module.h>
-#include <linux/random.h>
 #include <linux/sched.h>
 #include <linux/slab.h>
 #include <linux/uaccess.h>
Signature · 1 line
2.20.1.7.g153144c
maintainer
#1 lore raw
Quoted 15 lines · Yang Li

Fix following includecheck warning:
./drivers/char/hw_random/core.c: linux/random.h is included more than once.

---
 drivers/char/hw_random/core.c | 1 -
 1 file changed, 1 deletion(-)
drivers/char/hw_random/core.c +0 -0
index be2953aa5145..94626f533361 100644

drivers/char/hw_random/core.c line 24

Quoted 4 lines
drivers/char/hw_random/core.c +0 -1
@@ -21,7 +21,6 @@
 #include <linux/sched/signal.h>
 #include <linux/miscdevice.h>
 #include <linux/module.h>
-#include <linux/random.h>

This file does not appear to have been included twice.

Cheers,

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt