From patchwork Fri Nov 24 20:54:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 10074587 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9DB9560383 for ; Fri, 24 Nov 2017 20:55:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8EA662A140 for ; Fri, 24 Nov 2017 20:55:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 83C402A246; Fri, 24 Nov 2017 20:55:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1A1992A140 for ; Fri, 24 Nov 2017 20:55:13 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 234AB6EA0C; Fri, 24 Nov 2017 20:55:12 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mout.web.de (mout.web.de [212.227.15.14]) by gabe.freedesktop.org (Postfix) with ESMTPS id 316B86EA0C for ; Fri, 24 Nov 2017 20:55:09 +0000 (UTC) Received: from [192.168.1.3] ([78.53.250.25]) by smtp.web.de (mrweb003 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MEmbK-1eL95D4950-00Fz0Z; Fri, 24 Nov 2017 21:55:02 +0100 Subject: [PATCH 4/4] video: udlfb: Delete an unnecessary return statement in two functions From: SF Markus Elfring To: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, Bartlomiej Zolnierkiewicz , Bernie Thompson References: <6fb11bb4-2c1d-a939-087b-de31c42328b9@users.sourceforge.net> Message-ID: <1e2d3f13-0184-4504-9813-0982fa3f4c67@users.sourceforge.net> Date: Fri, 24 Nov 2017 21:54:19 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <6fb11bb4-2c1d-a939-087b-de31c42328b9@users.sourceforge.net> Content-Language: en-GB X-Provags-ID: V03:K0:v4VxzplYUTpxiy+nc8qUcGSJl1giIsqhXTNJ88T+i9sYCBC1sGj g/23jFDgnuNiTRbwuw2bI99ykWB/rv8zlZB36+igUradIlpLgxJ9s60tCTtq+73iNKrFuLM Lo83wasF2Jmi67VJL0W9BRkQ91wP3FXLcv1CvAGYG0XjhtYjUJCQEUxOy4KhehKFH3bYPaY yaX9htKo5U19Fh3vf9ZJg== X-UI-Out-Filterresults: notjunk:1; V01:K0:o/l7ADPjiFY=:QIhCkZu8tNkcG0w9r3Z09B MzW56wt03iHsiZoGxQoRM9KKudXYPI3zYNcArX0PArvOBDtN42Iu+gaINWaTe8hA1p+3V01Wk KpQJGJefShq6KAWmuw/RUdzcdHWhBTDB7hyzW+nfRKdImJYxWjHyEsEp8S4TY/tUZbz2kNCN3 8AFm0pb0yluqzqM2gf/DuKEBqpmLWsWNPPpYT0DPEcIcnEB0cdlzfda96t6Adz8zsvBqdPsox 5Ygl17MMCSbs8BeUQDDD+t/ID/02jinL9Qp+QffPV8TZ/m84dDMS+sVa6eAWPkKJsYOAxwnYO mdUro7qNBXzMTkF9pQ17flYvBlJ+Xqhfv5h59kK9jPhbG6m4ImtIwXk39CXQfhAV+v+s1wJRi BBwPm92zd+6YcqUgsknYVRItwem31yqZrnzMyjMvh/Z/CiftcjUJGfYYIWexemy5LEvzab6aN QRaP15aQfgeHUbOCm0sFkuBe7AlKOEk14dYorq2D84XCwJ0+FJhYHuNbt26cBR/I+ya7afaZf WnRr1X/52fyW6vCWXRqkYPIdnf/2/+SybaUYahDm6I6OKj5yqrfakYxWI90uJTGkdSAlkBybM 2l0VVL4voo5i0TH+j7u+ZdBBDVSJcjdkFsInO2ULHBVL3mdkjvzVyMQeSF5sgGpJ+6ceSB8Y7 amMvZ9fhuNPqq2H8tr/XBTXwHmmsJaiURIFl52otFtlxvmslhSFqTBxSN6VWV4jvWAVhVKay+ mNqBzo874Fgabr1ESQG2tNr/8HiJusBx5QSdKvFhqhkVcGvKh1s7peS/YBwscrKB1t/PcIvgO Hl1uI6O0wqxF4QeoKBhY8NjWfXesTk6QkmtPklrwQbBGt8ES7fT82oyR3H6Y6gU8D2erzeC Cc: kernel-janitors@vger.kernel.org, LKML X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Fri, 24 Nov 2017 21:36:39 +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 --- 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 059883962698..c6bf7088f5f4 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; } /* @@ -1768,8 +1766,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 = {