video: udlfb: Delete an unnecessary return statement in two functions

"Linux Kernel Mailing List" <[email protected]>
Newsgroups gmane.linux.kernel.commits.head
Message-ID <[email protected]>
Web:        https://git.kernel.org/torvalds/c/11ab5a640cc2e4432500c28d62c48f3377a75cad
Commit:     11ab5a640cc2e4432500c28d62c48f3377a75cad
Parent:     74fb251963df4cbb10cc1185297a7c7863ef85e3
Refname:    refs/heads/master
Author:     Markus Elfring <[email protected]>
AuthorDate: Fri Dec 29 19:48:44 2017 +0100
Committer:  Bartlomiej Zolnierkiewicz <[email protected]>
CommitDate: Fri Dec 29 19:48:44 2017 +0100

    video: udlfb: Delete an unnecessary return statement in two functions
    
    The script "checkpatch.pl" pointed information out like the following.
    
    WARNING: void function return statements are not generally useful
    
    Thus remove such a statement in the affected functions.
    
    Signed-off-by: Markus Elfring <[email protected]>
    Cc: Bernie Thompson <[email protected]>
    Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]>
---
 drivers/video/fbdev/udlfb.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/drivers/video/fbdev/udlfb.c b/drivers/video/fbdev/udlfb.c
index ee338ba3d9ab..99ce445986b3 100644
--- a/drivers/video/fbdev/udlfb.c
+++ b/drivers/video/fbdev/udlfb.c
@@ -505,8 +505,6 @@ static void dlfb_compress_hline(
 	*command_buffer_ptr = cmd;
 	*pixel_start_ptr = pixel;
 	*device_address_ptr = dev_addr;
-
-	return;
 }
 
 /*
@@ -1777,8 +1775,6 @@ static void dlfb_usb_disconnect(struct usb_interface *interface)
 	kref_put(&dev->kref, dlfb_free);
 
 	/* consider dlfb_data freed */
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.