From patchwork Sat Aug 26 20:44:43 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: 9923609 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 727C8603FF for ; Sat, 26 Aug 2017 20:45:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4F328285D9 for ; Sat, 26 Aug 2017 20:45:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 43B7A285E5; Sat, 26 Aug 2017 20:45:33 +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 DFB70285E7 for ; Sat, 26 Aug 2017 20:45:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751131AbdHZUpJ (ORCPT ); Sat, 26 Aug 2017 16:45:09 -0400 Received: from mout.web.de ([217.72.192.78]:50373 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751083AbdHZUpI (ORCPT ); Sat, 26 Aug 2017 16:45:08 -0400 Received: from [192.168.1.2] ([85.182.38.188]) by smtp.web.de (mrweb101 [213.165.67.124]) with ESMTPSA (Nemesis) id 0Ltnmz-1dLxN733vZ-011D5O; Sat, 26 Aug 2017 22:44:57 +0200 Subject: [PATCH 1/3] [media] usbvision: Delete an error message for a failed memory allocation in usbvision_probe() From: SF Markus Elfring To: linux-media@vger.kernel.org, Davidlohr Bueso , Hans Verkuil , Johan Hovold , Mauro Carvalho Chehab , Sakari Ailus Cc: LKML , kernel-janitors@vger.kernel.org References: Message-ID: Date: Sat, 26 Aug 2017 22:44:43 +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:5L8uR0AgLxOddBVI46hEHNMGbe477NLP/Q8kmWc4eIkDUHtbvyc k2FpHSvS//wJUtfgyYb1V0T3ntHI87d4xuuWsn+vFkhkcM413YBlxDQh0qWsAiWVPgSzk2M VZ5FGdSWFK6zxT7INLE+xNopE3ya2wJjkqXWDr1bSaJ/bS+8d1+Z026eH7bkJBXjLafcWZj A2TsaOUz0J41yi8SmM+ag== X-UI-Out-Filterresults: notjunk:1; V01:K0:vz9xAM4fEcQ=:YQUM/CEhjDCFGsQMb3yTmu HaL9wqDXCPw9TEtbjy2l4y8WxGvxSR3Dw0ayraaU4kM0Y6C90P3rVDYi9EhJ980LKGkFWs+gX Kmuyni2KEeT4M2T1wESp+c4xyqHblCCUb2Jp6pTI/8sMxF+cv9DjtWF1pUsrFQI0zIdaP6HHi 0MXb0w+zrzu+C0qrI5S8p2EY0Y2MwJlfM4NilpRVuE/Khf0I7B+DC8TQVJGh5Nrs93iO/v69+ NDlePPTGKSKCcJLM686ulR2Ply8fWmzXv72OMFP4tdhfOaVRzpMoKwywAFYUilQF1LKwqff3+ 2mPi9DJjQPL2c1bI12dUzj5GBZDS7SXN4AijPAaTROAgmflhdAo8KDzyTz3iiZL8icBgsdQf5 gvwHPD9S4nlRlc7dbOrSYZ26PVaejL1wI9s2rIJv8OxUbmIEaEMO9MP3hpGaA38XxoHsb0PJd ws+sXbK1uiVJI/wwFdoVDiqDsFy/XijOZ+q6B808mfaz6V752nA38tZ+hCI374YbDs7bqDSyI gIqP6ZWIX7rbN14PDwm3FH5xZ7eXIATxRsK6FiDZNEQaHgq1d/zW7tJuGX4bp6Y2JTMGObAP/ GtgdZ8IFxTqOu5IAs1ORkDjbMIt8NUmEZeLhk9vV1mB/wBzJkX7N27Sn0P9DUfU8D/m/O0/i8 dT0VRqcuLXAVovPt+WkD7du7FGbota16Aq8GqEvTKRIEuZ97PwjESy1nDS7CIn3KTcs4i3OBv 8kApeuCz28UwnVVjIkxxuUDs4w2pIc0kIR7JDDKAp/KcdWfPvy9gq8JCmam+twXI+fmNJOW4L Z1eo5avdnZ89s19UAW4Rkd4pEk6kwoxPHWgL78da0VC4STBDmw= 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: Sat, 26 Aug 2017 22:06:05 +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/usb/usbvision/usbvision-video.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/media/usb/usbvision/usbvision-video.c b/drivers/media/usb/usbvision/usbvision-video.c index 756322c4ac05..b74fb2dcb6f5 100644 --- a/drivers/media/usb/usbvision/usbvision-video.c +++ b/drivers/media/usb/usbvision/usbvision-video.c @@ -1498,4 +1498,3 @@ static int usbvision_probe(struct usb_interface *intf, - dev_err(&intf->dev, "usbvision: out of memory!\n"); ret = -ENOMEM; goto err_pkt; }