[PATCH -next] hwrng: Remove duplicate include

williamsukatube@163.com posted 1 patch 3 years, 6 months ago
drivers/char/hw_random/core.c | 1 -
1 file changed, 1 deletion(-)
[PATCH -next] hwrng: Remove duplicate include
Posted by williamsukatube@163.com 3 years, 6 months ago
From: William Dean <williamsukatube@163.com>

In file: drivers/char/hw_random/core.c,
'#include <linux/random.h>' has included at line: 18,
now it is duplicated include at line: 24, so delete duplicated include.

Signed-off-by: William Dean <williamsukatube@163.com>
---
 drivers/char/hw_random/core.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/char/hw_random/core.c b/drivers/char/hw_random/core.c
index 16f227b995e8..56d171cd2fc6 100644
--- a/drivers/char/hw_random/core.c
+++ b/drivers/char/hw_random/core.c
@@ -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>
--
2.25.1
Re: [PATCH -next] hwrng: Remove duplicate include
Posted by Herbert Xu 3 years, 6 months ago
williamsukatube@163.com wrote:
> From: William Dean <williamsukatube@163.com>
> 
> In file: drivers/char/hw_random/core.c,
> '#include <linux/random.h>' has included at line: 18,
> now it is duplicated include at line: 24, so delete duplicated include.
> 
> Signed-off-by: William Dean <williamsukatube@163.com>
> ---
> drivers/char/hw_random/core.c | 1 -
> 1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/char/hw_random/core.c b/drivers/char/hw_random/core.c
> index 16f227b995e8..56d171cd2fc6 100644
> --- a/drivers/char/hw_random/core.c
> +++ b/drivers/char/hw_random/core.c
> @@ -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>

This is supposed to be sorted so please remove the other inclusion
instead.

Thanks,
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt