2021-07-15 16:10:01

by Andy Shevchenko

[permalink] [raw]
Subject: [PATCH v1 1/1] auxdisplay: charlcd: Drop unneeded terminator entry

Besides 0 not being, strictly speaking, a pointer it's redundant after
the actual terminator NULL entry. Drop the former for good.

Signed-off-by: Andy Shevchenko <[email protected]>
---
drivers/auxdisplay/charlcd.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/auxdisplay/charlcd.c b/drivers/auxdisplay/charlcd.c
index 24fd6f369ebe..e9bc5fb4da28 100644
--- a/drivers/auxdisplay/charlcd.c
+++ b/drivers/auxdisplay/charlcd.c
@@ -638,8 +638,7 @@ static int panel_notify_sys(struct notifier_block *this, unsigned long code,

static struct notifier_block panel_notifier = {
panel_notify_sys,
- NULL,
- 0
+ NULL
};

int charlcd_register(struct charlcd *lcd)
--
2.30.2