From patchwork Sat Oct 4 19:40:52 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 5032961 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 555AAC11AB for ; Sat, 4 Oct 2014 19:41:36 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 94C3020165 for ; Sat, 4 Oct 2014 19:41:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B0D6B20160 for ; Sat, 4 Oct 2014 19:41:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751034AbaJDTlc (ORCPT ); Sat, 4 Oct 2014 15:41:32 -0400 Received: from mail-qc0-f175.google.com ([209.85.216.175]:56042 "EHLO mail-qc0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751117AbaJDTlZ (ORCPT ); Sat, 4 Oct 2014 15:41:25 -0400 Received: by mail-qc0-f175.google.com with SMTP id w7so2420016qcr.20 for ; Sat, 04 Oct 2014 12:41:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Qr839hPnLco/l504QTtJ5NNE1BXHt8CVoOgW/V0AJTw=; b=y/BIRtTr2A9KZBUtBpz4CN6w9t/5x3L8Up/h/TjDB/iQGhP89wH5mFxBfoxTA5/Dku DnEOs6OaEgD082vVdtaZ08XQgECbasnb8t6cafda8cqQcfTsbxZnBG6aeKlsxa4uFH+G trVrRyRvaOIzJV/02h6Q5SdYNvVpOPQgOu/xIUlRATUHnE8PnIht0EKKTx3mhRLBydp6 aPVF/rW0VG+QsiPqJvrbvx0YSwU8Y5tyaPoGm9NMsWZSll1Kol1b6Wzl0jok+d7UbmUf gxq9yq3HTIIlDXMscM0ibZMmdQHHeEwRrTpClHoCBvjkyFuaUrhCKeD6qSTY6+dzyn9J QK5g== X-Received: by 10.224.76.74 with SMTP id b10mr18434440qak.38.1412451685139; Sat, 04 Oct 2014 12:41:25 -0700 (PDT) Received: from localhost.localdomain ([187.66.157.233]) by mx.google.com with ESMTPSA id q20sm8754229qay.37.2014.10.04.12.41.22 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 04 Oct 2014 12:41:24 -0700 (PDT) From: Fabio Estevam To: m.chehab@samsung.com Cc: p.zabel@pengutronix.de, linux-media@vger.kernel.org, Fabio Estevam Subject: [PATCH 3/3] [media] coda: Remove devm_kzalloc() error message Date: Sat, 4 Oct 2014 16:40:52 -0300 Message-Id: <1412451652-27220-3-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1412451652-27220-1-git-send-email-festevam@gmail.com> References: <1412451652-27220-1-git-send-email-festevam@gmail.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Fabio Estevam Core code already prints on OOM errors, so no need to keep this here. Signed-off-by: Fabio Estevam --- drivers/media/platform/coda/coda-common.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/media/platform/coda/coda-common.c b/drivers/media/platform/coda/coda-common.c index 951f1d4..72b624e 100644 --- a/drivers/media/platform/coda/coda-common.c +++ b/drivers/media/platform/coda/coda-common.c @@ -1846,11 +1846,8 @@ static int coda_probe(struct platform_device *pdev) int ret, irq; dev = devm_kzalloc(&pdev->dev, sizeof(*dev), GFP_KERNEL); - if (!dev) { - dev_err(&pdev->dev, "Not enough memory for %s\n", - CODA_NAME); + if (!dev) return -ENOMEM; - } spin_lock_init(&dev->irqlock); INIT_LIST_HEAD(&dev->instances);