From patchwork Mon Dec 11 10:46:51 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: 10104725 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 CC6FE602D8 for ; Mon, 11 Dec 2017 10:47:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D2F5E2953D for ; Mon, 11 Dec 2017 10:47:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C7D232953E; Mon, 11 Dec 2017 10:47:47 +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=unavailable 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 6EAFC28EAD for ; Mon, 11 Dec 2017 10:47:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752379AbdLKKrd (ORCPT ); Mon, 11 Dec 2017 05:47:33 -0500 Received: from mout.web.de ([217.72.192.78]:54621 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751871AbdLKKrb (ORCPT ); Mon, 11 Dec 2017 05:47:31 -0500 Received: from [192.168.1.3] ([92.227.98.61]) by smtp.web.de (mrweb103 [213.165.67.124]) with ESMTPSA (Nemesis) id 0Lrazp-1f3MwN3zfZ-013PXA; Mon, 11 Dec 2017 11:47:27 +0100 Subject: [PATCH 5/6] target: tcm_loop: Delete an unnecessary return statement in tcm_loop_submission_work() From: SF Markus Elfring To: target-devel@vger.kernel.org, linux-scsi@vger.kernel.org, Bart Van Assche , "Nicholas A. Bellinger" Cc: LKML , kernel-janitors@vger.kernel.org References: <42f13f0c-ae1d-ec1e-fd9d-62dd15aeba8c@users.sourceforge.net> Message-ID: <9643f835-78e6-51cc-3d07-7a43a3c5eb07@users.sourceforge.net> Date: Mon, 11 Dec 2017 11:46:51 +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: <42f13f0c-ae1d-ec1e-fd9d-62dd15aeba8c@users.sourceforge.net> Content-Language: en-GB X-Provags-ID: V03:K0:7ulU1eXlceIP2Wt0f8jGezTGeCX83NBS+ryYESyyY9a0F2XOPQ+ 8VCM6QO7es78hiC/yYf9+B02ZB+WUlk4c/BMgZkimXJyqWrtKMp/T/TIpYsxpKJw/lld27T vDaX95U9Mu2scCXLyfoq6R3h0/FloKPKJ1r/meQ7a4OtEaCyY/YXA+VxIyTgpXMRxfAiOke nMtqK9k0E57MlXfV1u9uw== X-UI-Out-Filterresults: notjunk:1; V01:K0:8t0j9ZDEPwI=:Y4h1xlpjdUuRInKtm+fllR l8+tGTXj0IIslrUairW818x2NZp/Q3bIy49sK5i9ZcSoIbhQ2gTfyzaxoAP+IC/dqB3pptk7z P7Z3GdntooW+ipki3vGrjkn+4Zd78LwXmfsGKnFXuPKnJa3hcfLeFzTEwu+LO8i8VfTFa2s6H UH6jqQM9Y8fmywe76AS6oxtEjsoCawrAnaN5lQ9XSMR8mfrlire1qPQZ4f18BAdZWYAdX8dpW Zjp2cKXkSkNYds0bP7j1bB/+FEmRToAQhuq3oIzP4NCviu1cixjyO/opxs4MxVqtqlMjo9w4V zxxUM0zKI7VGOaE4wFbbeCjBvfesp6vk/EbzaQxmrK2OPVS0995gQH/pMRhpUFW+rudFpq+ao aRe76SoP1kUFQTlqFZm3bt48U3By/ri6oxpZ6SyjdDvsFhjUK4xHos8GW+B+KwoTRpgfTGg+T Ezoo+tuOXUaqwOnu9ywlWUJMZQV7Ml4jIOpKzcD2ELwepjtUQln20NI4hz+z1H8d/eTspgcks dnMRpjnuaMw8pbtRaQ42E6yXXTsuRIj9tfVyisXouawCAN6QYH6DQd1pmX9eVCjvaD3KCqY8d KD7QCH+SHde/yzDwnH/OPWO9o+fk65f9T0hB2oOV0GzSprrIPU6cOOqXSSOHVHl3V7LgsLTmb ql+kifG1IxoES5fj9GL+jrBPW8gxhC5nWBQ9e6/Vk8us8TSeX7ERoQPdQrZU2WCiInW5Wc1I7 edBdUps1v8owEi75doMSl60sarJ+fRky1BBIdeBO5nekmiZtOMlKkrtaD1Lv7meEPDhRPK+Wz tIm+n+cU5iL9k7PNGUMRBgp23i5UWtGJ2tTHMT04O2/6ziUTf6PGXGrLOobOWeWjb8kRPRb Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Mon, 11 Dec 2017 10:58:33 +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 function. Signed-off-by: Markus Elfring --- drivers/target/loopback/tcm_loop.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/target/loopback/tcm_loop.c b/drivers/target/loopback/tcm_loop.c index 08dbf5b4ff15..ec01070bbb40 100644 --- a/drivers/target/loopback/tcm_loop.c +++ b/drivers/target/loopback/tcm_loop.c @@ -166,7 +166,6 @@ static void tcm_loop_submission_work(struct work_struct *work) out_done: kmem_cache_free(tcm_loop_cmd_cache, tl_cmd); sc->scsi_done(sc); - return; } /*