From patchwork Fri Sep 1 18:20:38 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: 9935051 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 4BE736021C for ; Fri, 1 Sep 2017 18:21:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 45AF627F8E for ; Fri, 1 Sep 2017 18:21:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3A81927FA5; Fri, 1 Sep 2017 18:21:08 +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 C221D27F8E for ; Fri, 1 Sep 2017 18:21:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752279AbdIASUw (ORCPT ); Fri, 1 Sep 2017 14:20:52 -0400 Received: from mout.web.de ([212.227.15.14]:58294 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752254AbdIASUv (ORCPT ); Fri, 1 Sep 2017 14:20:51 -0400 Received: from [192.168.1.2] ([77.182.57.191]) by smtp.web.de (mrweb004 [213.165.67.108]) with ESMTPSA (Nemesis) id 0LlayN-1dFsun3lix-00bLrJ; Fri, 01 Sep 2017 20:20:38 +0200 To: linux-media@vger.kernel.org, Antti Palosaari , Mauro Carvalho Chehab Cc: LKML , kernel-janitors@vger.kernel.org From: SF Markus Elfring Subject: [PATCH] [media] si2168: Delete an error message for a failed memory allocation in si2168_probe() Message-ID: <67e4ee2f-7fd8-5d46-4000-61dae57ca729@users.sourceforge.net> Date: Fri, 1 Sep 2017 20:20:38 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 Content-Language: en-GB X-Provags-ID: V03:K0:YAdvGGpwEVWgpEzDDZZrsHlCmHm90+01TGSe3tRJBKPM4c0gFCL tEYvZWxv12Oirs4zpj2irPMnFavcScW+kNqBZFGREbZujTMC/0cXM2K94GBtxNI7i4hzTJI z5tdVDvhG+qz7pilStv4lk8/GY9AjqN6Lmr5xdVMK/LtNDBrRIQvzHkOXWWVqtPhU3GZPTx GLOxY084ccLKdq43qmDMw== X-UI-Out-Filterresults: notjunk:1; V01:K0:7auefGfAC58=:c+aXMO+cpSveo0QbNmCdga 1CprSB33jHefuu5USRmkERQHoF0XCkTC6EWhR3G8iL9rG9ipvFoZOCyGHOK6h3Y/Hcy81S6vn qjLHBvJfipUQgAY/VeXZHvco0w3DMDCtMSz/PbAWgPvBjiauWTQ8m8rqpgYP+jfC8q7T+1AwH InpbSmDZMyqeYZkKDVimaE6xj4kj0Z+nc27I5dbhZJctQDK/Tt/Z13uWwC2DensUm40QfNkOF XadWsy1jTDXsm7l9Bn2uTOhqqsA0EyiY9/XNRj99EXN0rXQ5ew/pR2OcXcsYzrRLaIpiP43VX 8h0P55xoLzrYyHLPXA9ScA5pr1/daS2UogyPT7vsSjy7ajxkbz3Bwl2b7Ko/IZpx/kLG210mK 6E5PPpScu5wpsZgHa8oO70mDBgi4Ty6ILdZ8EWxVabVi/INT+u0LcIHhgDWK0sjRxLHI62wbF ZyA0eQ7LjaY07dRXdG77NgU1UUKtpSNAu3zsDiMmfbFhQ2YJC3gGXLYClYAXJM4ovOYgLqH1C 0oHxAdBVcjQIet2EKVsUyRi6a8fSsKOnAEqL/W1w73Fwjatwm1i/swQozWa208BCdOaOT/ESp IW0jEadu88cB17OTalk8/YK+aZeyV1Zfd0NzVWVjQh8YL0HBOHw5E7uKvkxipLyb3S+1NlB11 ElOo+B6RsOTcGxzx7a77vdF0dDwtc2R5u1SdZnKJsnorbdmrylSyXTkI1atbV23GAl91vpP8+ tP8V4WaPTkblQakjV93WlbssOe4yxFnV983pdnHO548VbOwU4WUATAYXgc6Iom4rhYiqxLPl/ rEDj71ExoeYvOQZ9H8oIONJ00TkSrUd2F3Ab9KVprbSNor1PHM= 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, 1 Sep 2017 19:50:45 +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/dvb-frontends/si2168.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/media/dvb-frontends/si2168.c b/drivers/media/dvb-frontends/si2168.c index 172fc367ccaa..41d9c513b7e8 100644 --- a/drivers/media/dvb-frontends/si2168.c +++ b/drivers/media/dvb-frontends/si2168.c @@ -697,6 +697,5 @@ static int si2168_probe(struct i2c_client *client, if (!dev) { ret = -ENOMEM; - dev_err(&client->dev, "kzalloc() failed\n"); goto err; }