diff mbox series

[-next] hwrng: core: Remove duplicated include in core.c

Message ID 20220215005505.80430-1-yang.lee@linux.alibaba.com
State New
Headers show
Series [-next] hwrng: core: Remove duplicated include in core.c | expand

Commit Message

Yang Li Feb. 15, 2022, 12:55 a.m. UTC
Fix following includecheck warning:
./drivers/char/hw_random/core.c: linux/random.h is included more than
once.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
---
 drivers/char/hw_random/core.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Herbert Xu Feb. 23, 2022, 2:46 a.m. UTC | #1
On Tue, Feb 15, 2022 at 08:55:05AM +0800, Yang Li wrote:
> Fix following includecheck warning:
> ./drivers/char/hw_random/core.c: linux/random.h is included more than
> once.
> 
> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
> Signed-off-by: Yang Li <yang.lee@linux.alibaba.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 be2953aa5145..94626f533361 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>

This file does not appear to have been included twice.

Cheers,
diff mbox series

Patch

diff --git a/drivers/char/hw_random/core.c b/drivers/char/hw_random/core.c
index be2953aa5145..94626f533361 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>