summaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2023-03-19 00:53:38 +0100
committerHelge Deller <deller@gmx.de>2023-05-30 18:33:25 +0200
commitd00394e1395be9e27f58d58a61642a2a5df10405 (patch)
tree5a009772bd8c8f5deb32432f7a29351fdfec8f1e /drivers/video
parentfbcon: Fix null-ptr-deref in soft_cursor (diff)
downloadlinux-d00394e1395be9e27f58d58a61642a2a5df10405.tar.xz
linux-d00394e1395be9e27f58d58a61642a2a5df10405.zip
fbdev: au1100fb: Drop if with an always false condition
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>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/fbdev/au1100fb.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/video/fbdev/au1100fb.c b/drivers/video/fbdev/au1100fb.c
index 519313b8bb00..cd27e3b81bb8 100644
--- 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)