]> git.dujemihanovic.xyz Git - linux.git/commitdiff
vgacon: let vgacon_doresize() return void
authorJiri Slaby (SUSE) <jirislaby@kernel.org>
Wed, 12 Jul 2023 08:59:39 +0000 (10:59 +0200)
committerHelge Deller <deller@gmx.de>
Thu, 20 Jul 2023 05:43:11 +0000 (07:43 +0200)
The return value is neither used, nor vgacon_doresize() returns an
error. So change the reurn type to void.

Signed-off-by: "Jiri Slaby (SUSE)" <jirislaby@kernel.org>
Cc: Helge Deller <deller@gmx.de>
Cc: linux-fbdev@vger.kernel.org
Cc: dri-devel@lists.freedesktop.org
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/console/vgacon.c

index 7cb15851ea566caab790c13a5e09517b466fab61..07f6b97d9b81c9e4c77a6ca99d360370730b4a1d 100644 (file)
@@ -528,7 +528,7 @@ static void vgacon_cursor(struct vc_data *c, int mode)
        }
 }
 
-static int vgacon_doresize(struct vc_data *c,
+static void vgacon_doresize(struct vc_data *c,
                unsigned int width, unsigned int height)
 {
        unsigned long flags;
@@ -587,7 +587,6 @@ static int vgacon_doresize(struct vc_data *c,
        }
 
        raw_spin_unlock_irqrestore(&vga_lock, flags);
-       return 0;
 }
 
 static int vgacon_switch(struct vc_data *c)