From patchwork Mon Dec 26 20:52:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 9488799 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 CFF7F60839 for ; Mon, 26 Dec 2016 20:52:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BFF6B1FF8E for ; Mon, 26 Dec 2016 20:52:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B1E561FFBD; Mon, 26 Dec 2016 20:52:49 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3FC391FF8E for ; Mon, 26 Dec 2016 20:52:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755847AbcLZUwr (ORCPT ); Mon, 26 Dec 2016 15:52:47 -0500 Received: from mout.web.de ([212.227.15.14]:50266 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755455AbcLZUwp (ORCPT ); Mon, 26 Dec 2016 15:52:45 -0500 Received: from [192.168.1.2] ([77.182.133.191]) by smtp.web.de (mrweb003 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MejjU-1cAiB90xcu-00OHR2; Mon, 26 Dec 2016 21:52:27 +0100 Subject: [PATCH 7/8] [media] videobuf-dma-sg: Delete an unnecessary return statement in videobuf_vm_close() To: linux-media@vger.kernel.org, Dave Hansen , Jan Kara , Javier Martinez Canillas , "Kirill A. Shutemov" , Lorenzo Stoakes , Mauro Carvalho Chehab , Michal Hocko , Sakari Ailus References: <9268b60d-08ba-c64e-1848-f84679d64f80@users.sourceforge.net> Cc: LKML , kernel-janitors@vger.kernel.org From: SF Markus Elfring Message-ID: <23eb1fd5-696e-aed0-eb26-f5ae46b6e62e@users.sourceforge.net> Date: Mon, 26 Dec 2016 21:52:23 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <9268b60d-08ba-c64e-1848-f84679d64f80@users.sourceforge.net> X-Provags-ID: V03:K0:jFqywKIOY9a7lux+pUuKNXLIxGf9LOjRA1hik2n9AkmG7EWqdz/ chmRZgW9qly1YyA/2MBQ2wHhaeXhmDgHE1ccrMqpBN2AKT2C6daz3pMQqBeLE2yIWT5kqaI 82m65qDoimeSeRO8aU4ngAWl/m7n2qC0xSi4vke+C1uFpxy9Tet6aaixj4WmxTIl4UTOcur dTr6dRtCllUMZKtpc5XFA== X-UI-Out-Filterresults: notjunk:1; V01:K0:wFqvwQUdf20=:AyZBT0yx+wk0raFOoe35Fn vSL7IlNiJK00zUOzcUpM5CkU0ymZG1PL+kYoqa0nrdqe0Sg8ZGv8OiQrec84mvSSFasr5KVzA cL+WHp0VXGBIQ8mXGtX5v/TRuflFfpAKDU4dRYpm3sqKarvgwtqgRoAbsP5i10eRUddhMPnA5 d/iAW5ARYOM3uhCLGuXfxVsNiNre3pCky/CR2Q2HloIpaARNXkBnnacwLvM+48O2BAXXNt0OE /A4uv/iDLjp6G+KJdv0YDJHK5fUnnb9rwsIKs2LkY5LiO52ZIsW0CwaFpMY6hgjBRuDxKUUa5 JhxpPlS7LcLU8aEzEgP4CvdM0vvARwxMiaNjBL2Pg8ij+n/vQ9/IcNITiSaIETrdPbtmk59GJ jkZ1G63cHa0M5fJhFKanqKvEHojM2QFEjpFp1ZpvqpBTOd8YU12ZrGD2g6LgBoQd2TRwPxxrQ zccRmk9wWFR2p4rEWdXNKOOxu8jTvJ+Fc+AQtOA1zbeXkO6NeMBOPZxB5hiY5b18a+r/p7Ng0 P0/YAdeXVx7yayxNpsoFAEG/eefvAbJrKelSpSFygdfT1qYih5FKEAwvpq6zt7K75H/rWDJkh 18by4PI0b61yUfYulqNT//F+kmm+MCXODeBQ6F2kTnWZCjp62LPu63eGW9u6cvRPsldWUzkc+ fKTPz/h0JpStC6AFGK7z+7DEjxTP66HjLi+Rfhit7ZTirPgMqf1Vzfoyh3/Ax4yX65cyj35Qd Rje83kKU2HaUcV2AQrfKyXn1xv1sB3+uuPsDdgNHjH1UiMEoPr2tt9LWmlttxOxx8nBYFFy2Z O6H61ml Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Mon, 26 Dec 2016 21:09:01 +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 here. Signed-off-by: Markus Elfring --- drivers/media/v4l2-core/videobuf-dma-sg.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/media/v4l2-core/videobuf-dma-sg.c b/drivers/media/v4l2-core/videobuf-dma-sg.c index 070ba10bbdbc..c8658530da57 100644 --- a/drivers/media/v4l2-core/videobuf-dma-sg.c +++ b/drivers/media/v4l2-core/videobuf-dma-sg.c @@ -427,7 +427,6 @@ static void videobuf_vm_close(struct vm_area_struct *vma) videobuf_queue_unlock(q); kfree(map); } - return; } /*