From patchwork Fri Sep 8 19:42:17 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: 9944945 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 DB04F60224 for ; Fri, 8 Sep 2017 19:42:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D08282885A for ; Fri, 8 Sep 2017 19:42:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C5575288B6; Fri, 8 Sep 2017 19:42:46 +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 7FBD72885A for ; Fri, 8 Sep 2017 19:42:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757103AbdIHTma (ORCPT ); Fri, 8 Sep 2017 15:42:30 -0400 Received: from mout.web.de ([217.72.192.78]:60796 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757094AbdIHTm1 (ORCPT ); Fri, 8 Sep 2017 15:42:27 -0400 Received: from [192.168.1.2] ([92.228.166.205]) by smtp.web.de (mrweb103 [213.165.67.124]) with ESMTPSA (Nemesis) id 0Lpf3q-1dDCjC25he-00fVk0; Fri, 08 Sep 2017 21:42:20 +0200 Subject: [PATCH 1/3] [media] fsl-viu: Delete an error message for a failed memory allocation in viu_of_probe() From: SF Markus Elfring To: linux-media@vger.kernel.org, Arvind Yadav , Bhumika Goyal , Geliang Tang , Hans Verkuil , Mauro Carvalho Chehab , Prabhakar Lad Cc: LKML , kernel-janitors@vger.kernel.org References: Message-ID: Date: Fri, 8 Sep 2017 21:42:17 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-GB X-Provags-ID: V03:K0:hef5zeNhwtxkTuS/8dUvgThu14yMXE1DQyhDOFzZIQxiLG3cL/l Sm7GW3WJ69taCLfz6J87CsCChCHmIssVm3NVKPsYmdpwN72LittkgOFO6Go94QuoEwc2afR faO/OzWapDtjeZuLbz0lehzZzDw5JTSh2dkpyv42F6lKJ+nmlnmfiHL5QrqWnw4yh2ykgdL KeiQxs09LIfKj3M2k+Hpw== X-UI-Out-Filterresults: notjunk:1; V01:K0:yEofCJeYiOQ=:f+YU1tNFJzhwk9GnCS3OjV etwhZ3wa9t/KuEtAz8Kx0rzr3Mt2OQfE6w5kRf3IoyHUVq/4K7AdRHHACZBeLIFNqr1Tz1euD b7mW4PL0wewjbsG9KMvq8VBQ/sXjd4EaYeOnfzEOd+b43GYddBr1+wJobEM6jH2Vx0yvpaK97 it//DNq3RSCQVDUeb/LT/MYJ6UcykP2qlLAL+ofnE+AD9wE71GSJyTNc8SdGO0fvaZhN3S9Ad xbNSOG5aRUZhy8556yy7MpWMXP3XZNKxc5yubjFkiYs3zTK33Mt4A/eRmVFP0kukImFD7eU7P DgIJu+xEUAyTfrvqjklisTiq3gnCoxQ+wy8Iky/fzhG/EFTy+wN6yLN9YUXs8T62+s4F1rrZg UtFRRpj2/Iqzd/kD3RgWHfLv+pNUphszRV7GNCglV/+S8/7xvZpB8lYoq2KGyKv2W4BKYv2/p SX89Q5lNF27f0cEeZ1OFuP+dQllk0ZgYI48qFkOAzi2/dXKi/iZxH48mKKEd6ovN7YEucWO3H eyrJLFV+sxz+kJgJdeqTzcwszCKXVO/iBwhttkLxDPWFFlutc5FkkE3NxUoB2ZiQyNsitk/H7 JoweUy6MGw8hVwuuwi+t4i6xQhIxL8b15q66sq4IwpKv9nzfjp7ipcJyF98WJ7st6mHAn5tv6 2PZTyKeS24E9iWKzbSq9jeujkAjRQ0uAs5GCpdBtc4itkPjP2e6lbOrXiUsNZwDEnpuENUV80 f1ELFApuo29BJzBBQOx3RsPolmGKLymxTo7eELnpvUBBbVbLwxdTIwGpzH7LpKabzcI+0rCVc +mJgEiRYiOYfQ2Ln099XWEA37Z2Uona1pVGla0Lplu4g+N1MQY= 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: Fri, 8 Sep 2017 21:03:22 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/media/platform/fsl-viu.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/media/platform/fsl-viu.c b/drivers/media/platform/fsl-viu.c index fb43025df573..526f80649864 100644 --- a/drivers/media/platform/fsl-viu.c +++ b/drivers/media/platform/fsl-viu.c @@ -1433,5 +1433,4 @@ static int viu_of_probe(struct platform_device *op) if (!viu_dev) { - dev_err(&op->dev, "Can't allocate private structure\n"); ret = -ENOMEM; goto err; }