watchdog: dw_wdt: Remove duplicated header file inclusion
PATCH 1/1 watchdog: dw_wdt: Remove duplicated header file inclusion
The header file <linux/kernel.h> is already included above and can be removed here.
--- drivers/watchdog/dw_wdt.c | 1 - 1 file changed, 1 deletion(-)
drivers/watchdog/dw_wdt.c +0 -1
@@ -19,7 +19,6 @@#include <linux/delay.h> #include <linux/err.h> #include <linux/io.h> -#include <linux/kernel.h> #include <linux/module.h> #include <linux/moduleparam.h> #include <linux/interrupt.h>
Signature · 1 line
1.8.3
Guenter Roeck
maintainerQuoted 4 lines · Zhen Lei
The header file <
linux/kernel.h> is already included above and can be removed here.Signed-off-by Zhen Lei <[email protected]>
Already submitted:
https://patchwork.kernel.org/project/linux-watchdog/patch/[email protected]/
In general, when removing duplicate or unnecessary header files, please retain or improve alphabetic order. This patch makes it worse.
Guenter
Quoted 17 lines
--- drivers/watchdog/dw_wdt.c | 1 - 1 file changed, 1 deletion(-)drivers/watchdog/dw_wdt.c +0
-1@@ -19,7 +19,6 @@#include <linux/delay.h> #include <linux/err.h> #include <linux/io.h> -#include <linux/kernel.h> #include <linux/module.h> #include <linux/moduleparam.h> #include <linux/interrupt.h>
Quoted 4 lines · Guenter Roeck
Quoted 3 lines · Zhen Lei
The header file <
linux/kernel.h> is already included above and can be removed here.
Quoted 8 lines
Quoted 1 line
Signed-off-by Zhen Lei <[email protected]>Already submitted:
https://patchwork.kernel.org/project/linux-watchdog/patch/[email protected]/
In general, when removing duplicate or unnecessary header files, please retain or improve alphabetic order. This patch makes it worse.
Okay, thanks for the heads-up. I'll pay attention next time.
Quoted 24 lines
Guenter
Quoted 10 lines
--- drivers/watchdog/dw_wdt.c | 1 - 1 file changed, 1 deletion(-)drivers/watchdog/dw_wdt.c +0
-0drivers/watchdog/dw_wdt.c line 24
Quoted 7 lines
drivers/watchdog/dw_wdt.c +0
-1@@ -19,7 +19,6 @@#include <linux/delay.h> #include <linux/err.h> #include <linux/io.h> -#include <linux/kernel.h> #include <linux/module.h> #include <linux/moduleparam.h> #include <linux/interrupt.h> .