projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d78bd6c
)
fbdev: au1100fb: Drop if with an always false condition
author
Uwe Kleine-König
<u.kleine-koenig@pengutronix.de>
Sat, 18 Mar 2023 23:53:38 +0000
(
00:53
+0100)
committer
Helge Deller
<deller@gmx.de>
Tue, 30 May 2023 16:33:25 +0000
(18:33 +0200)
The driver core never calls a remove callback with the platform_device
pointer being NULL. So the check for this condition can just be dropped.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/au1100fb.c
patch
|
blob
|
history
diff --git
a/drivers/video/fbdev/au1100fb.c
b/drivers/video/fbdev/au1100fb.c
index 519313b8bb004fa245def79b0e74525a4e2edd42..cd27e3b81bb8288b2c689406912a84affde2e116 100644
(file)
--- a/
drivers/video/fbdev/au1100fb.c
+++ b/
drivers/video/fbdev/au1100fb.c
@@
-524,9
+524,6
@@
int au1100fb_drv_remove(struct platform_device *dev)
{
struct au1100fb_device *fbdev = NULL;
- if (!dev)
- return -ENODEV;
-
fbdev = platform_get_drvdata(dev);
#if !defined(CONFIG_FRAMEBUFFER_CONSOLE) && defined(CONFIG_LOGO)