mtd: spi-nor: remove duplicate included header files

Message ID 202302011730294177177@zte.com.cn
State New
Headers
Series mtd: spi-nor: remove duplicate included header files |

Commit Message

ye.xingchen@zte.com.cn Feb. 1, 2023, 9:30 a.m. UTC
  From: ye xingchen <ye.xingchen@zte.com.cn>

linux/delay.h is included more than once.

Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
---
 drivers/mtd/spi-nor/core.c | 1 -
 1 file changed, 1 deletion(-)
  

Comments

Tudor Ambarus Feb. 1, 2023, 10:01 a.m. UTC | #1
On 01.02.2023 11:30, ye.xingchen@zte.com.cn wrote:
> From: ye xingchen <ye.xingchen@zte.com.cn>
> 
> linux/delay.h is included more than once.

I see it only once included. Would you please double check?

> 
> Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
> ---
>   drivers/mtd/spi-nor/core.c | 1 -
>   1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/mtd/spi-nor/core.c b/drivers/mtd/spi-nor/core.c
> index e9ea14598ec3..d67c926bca8b 100644
> --- a/drivers/mtd/spi-nor/core.c
> +++ b/drivers/mtd/spi-nor/core.c
> @@ -16,7 +16,6 @@
>   #include <linux/math64.h>
>   #include <linux/sizes.h>
>   #include <linux/slab.h>
> -#include <linux/delay.h>
> 
>   #include <linux/mtd/mtd.h>
>   #include <linux/of_platform.h>
  

Patch

diff --git a/drivers/mtd/spi-nor/core.c b/drivers/mtd/spi-nor/core.c
index e9ea14598ec3..d67c926bca8b 100644
--- a/drivers/mtd/spi-nor/core.c
+++ b/drivers/mtd/spi-nor/core.c
@@ -16,7 +16,6 @@ 
 #include <linux/math64.h>
 #include <linux/sizes.h>
 #include <linux/slab.h>
-#include <linux/delay.h>

 #include <linux/mtd/mtd.h>
 #include <linux/of_platform.h>