gpiolib: cleanup for duplicated including

Message ID 202312151645+0800-wangjinchao@xfusion.com
State New
Headers
Series gpiolib: cleanup for duplicated including |

Commit Message

Wang Jinchao Dec. 15, 2023, 8:46 a.m. UTC
  rm second `#include <linux/err.h>`

Signed-off-by: Wang Jinchao <wangjinchao@xfusion.com>
---
 include/linux/gpio/driver.h | 2 --
 1 file changed, 2 deletions(-)
  

Comments

andy@kernel.org Dec. 15, 2023, 3:47 p.m. UTC | #1
On Fri, Dec 15, 2023 at 04:46:04PM +0800, Wang Jinchao wrote:
> rm second `#include <linux/err.h>`

rm --> Remove

Missing period at the end of the sentence.

Please, drop also asm/errno.h as they are guaranteed by the global err.h
inclusion.
  

Patch

diff --git a/include/linux/gpio/driver.h b/include/linux/gpio/driver.h
index 0aed62f0c633..d659ba63bc20 100644
--- a/include/linux/gpio/driver.h
+++ b/include/linux/gpio/driver.h
@@ -789,8 +789,6 @@  int gpio_device_get_base(struct gpio_device *gdev);
 
 #else /* CONFIG_GPIOLIB */
 
-#include <linux/err.h>
-
 #include <asm/bug.h>
 
 static inline struct gpio_chip *gpiod_to_chip(const struct gpio_desc *desc)