video: udlfb: Delete an unnecessary return statement in two functions
authorMarkus Elfring <elfring@users.sourceforge.net>
Fri, 29 Dec 2017 18:48:44 +0000 (19:48 +0100)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Fri, 29 Dec 2017 18:48:44 +0000 (19:48 +0100)
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 <elfring@users.sourceforge.net>
Cc: Bernie Thompson <bernie@plugable.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
drivers/video/fbdev/udlfb.c

index ee338ba3d9abdfb03a0aac5684db490e943d68b8..99ce445986b3299250d5da94c2a8c023aa58fb5f 100644 (file)
@@ -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 */
-
-       return;
 }
 
 static struct usb_driver dlfb_driver = {