From patchwork Mon Dec 26 20:45:50 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: 9488785 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 E109B60839 for ; Mon, 26 Dec 2016 20:46:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D30B81FF35 for ; Mon, 26 Dec 2016 20:46:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C6FBC1FFBD; Mon, 26 Dec 2016 20:46:36 +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 7EFE01FF35 for ; Mon, 26 Dec 2016 20:46:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754615AbcLZUqP (ORCPT ); Mon, 26 Dec 2016 15:46:15 -0500 Received: from mout.web.de ([212.227.15.14]:63977 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752047AbcLZUqN (ORCPT ); Mon, 26 Dec 2016 15:46:13 -0500 Received: from [192.168.1.2] ([77.182.133.191]) by smtp.web.de (mrweb001 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MUnqm-1c337J3ezk-00YD8M; Mon, 26 Dec 2016 21:45:58 +0100 Subject: [PATCH 2/8] [media] v4l2-async: Delete an error message for a failed memory allocation in v4l2_async_notifier_unregister() 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: Date: Mon, 26 Dec 2016 21:45:50 +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:uBWmA3O3EUOT7eLuIUjHDRfykjK6bQE+1qBq4BcZ8OqkLqi8FcX zViS/Vt6Wei0k7EJx8MKZ0TxdApX5mdRTOw1QijvbL6qhPyF9e/DVj+/UIGEXA3eCd9vEDC cLxxoGFsCxaOUgk/wurLRvzrUe69DUYYtF7Em8Pi/wmlIr4CAzjuywfl4cknNL7RXI7SBPx 3g/kzMnQeEeqlOT+q2OZQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:BKLOURyL3K8=:bHlKli5C9XTYFO/vTnprE8 1watoYWPfaASCihadPLsG2nLcUPbzcM3wL/sEACvc2XccG2F16JHkXxns+Yvynj85kC8XNUzY yrcTHWDtmZvF2ZkbCbh8OcRy84X8rJQz4vgpXGgm4WAKk2P1VqxaeKA7grHZOrsfTmg0KoLEm Y67S/ng2K+OvaVyYuAMH5FXyfsXgWIGF0drGlNlajFqMHCgINLldTckUaVCC8QnbLyq3D8Bkc FLYDbk6w6ynZfGSvnI560PeKv5lyGh3JI1hrwaRsZKr8klHTktXrEAYOJ7EIkuaGNny0PT8kQ 07Mlh8OX6mCJZ/rvO2JxhtYNhPQzzQChW//8umua3xo5yuTq4fZCH45vxQHKfoD/4kKtvhtEx m+ANCeYrjBh9ZF7KwHolC1dE2k59JyN87P9GWijE938gGFai16RCkGPcBNZo0oL2qPh2xpq86 o0IxYzgDPP0ngVZX2o24BM6QeE+4M4bOhwYZPxDnQ8iBM1pE/AaHfk7bwnYWE3DY4TXQGL8TO GybCfwEZLeoxc3y+5p2jzdwbEinGxO1YmDNiXTq2EhW+L68miTurZMtGf6hSE3M89wV4/JefP /naNh695Kz+Rpfn6irTVcDDpT9gNS7bhmQtbdybwtifqCn8vpEeK1XUr52wjgX6SH91Soteze jrZoU41jmMbELMTCythJGSVV9+vX9L2v3HCNlWlah9G7xYOcFn3Zk1G+kLDLU8jBZ+EPn5KPG tugwT/2dZgDuMPPGYYUh+XOZNPi4HrtyEAy8YtYXqBBJLBR4xmWhcC60JQ/sWCiCSWiBfyZ0V tlkWrqW 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 19:19:49 +0100 The script "checkpatch.pl" pointed information out like the following. WARNING: Possible unnecessary 'out of memory' message Thus fix the affected source code place. Signed-off-by: Markus Elfring Acked-by: Sakari Ailus --- drivers/media/v4l2-core/v4l2-async.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/media/v4l2-core/v4l2-async.c b/drivers/media/v4l2-core/v4l2-async.c index 277183f2d514..812d0b2a2f73 100644 --- a/drivers/media/v4l2-core/v4l2-async.c +++ b/drivers/media/v4l2-core/v4l2-async.c @@ -203,11 +203,6 @@ void v4l2_async_notifier_unregister(struct v4l2_async_notifier *notifier) return; dev = kmalloc_array(n_subdev, sizeof(*dev), GFP_KERNEL); - if (!dev) { - dev_err(notifier->v4l2_dev->dev, - "Failed to allocate device cache!\n"); - } - mutex_lock(&list_lock); list_del(¬ifier->list);