From patchwork Tue Jul 23 01:38:22 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 2831662 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 0AF039F4D4 for ; Tue, 23 Jul 2013 01:38:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2A89020203 for ; Tue, 23 Jul 2013 01:38:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id F05E620218 for ; Tue, 23 Jul 2013 01:38:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754144Ab3GWBik (ORCPT ); Mon, 22 Jul 2013 21:38:40 -0400 Received: from mail-yh0-f49.google.com ([209.85.213.49]:50372 "EHLO mail-yh0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754004Ab3GWBii (ORCPT ); Mon, 22 Jul 2013 21:38:38 -0400 Received: by mail-yh0-f49.google.com with SMTP id f64so760251yha.36 for ; Mon, 22 Jul 2013 18:38:37 -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:x-mailer:in-reply-to:references; bh=5MCOQOEe1wZaBKk+hCRl62rJ1rhb+8KobfBgSMcU0Cg=; b=fB1wk/WbkY84LCiWreQMkNANbTRUFZ5l2AAMW0GDx5PUD7SF16h4yqBAXJB7AbKIpJ B3NKsMOCLZg2xuuJegI6dRpGhzuJG+iAlZoOelLieeNWhJOHCh52yJv72YHDnAqJDlQv ozQWQDRHx9so2VOimE/9dpeGlFaZ7MhARvpiNl9Z73MetS/QyboSINN7aNEUdudT00Wp nYk5jCgxGarjQqAAMU2GVb/EaPFga+vCLziCABsWFoI4y0KnLC1xHgxqHAVAq0UdWW9v vCXK5B3qW9s6sm5W6oMFoXIYPTiVYC41Hg8XD+y1wqHrvbn0JL6AIrGeWL0LWlXYgQIK RrcA== X-Received: by 10.236.116.196 with SMTP id g44mr14409737yhh.243.1374543517871; Mon, 22 Jul 2013 18:38:37 -0700 (PDT) Received: from localhost.localdomain ([177.194.44.29]) by mx.google.com with ESMTPSA id z45sm42751976yhb.0.2013.07.22.18.38.36 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 22 Jul 2013 18:38:37 -0700 (PDT) From: Fabio Estevam To: k.debski@samsung.com Cc: m.chehab@samsung.com, kernel@pengutronix.de, linux-media@vger.kernel.org, Fabio Estevam Subject: [PATCH v3 3/3] [media] coda: No need to check the return value of platform_get_resource() Date: Mon, 22 Jul 2013 22:38:22 -0300 Message-Id: <1374543502-22678-3-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1374543502-22678-1-git-send-email-festevam@gmail.com> References: <1374543502-22678-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=-8.2 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 When using devm_ioremap_resource(), we do not need to check the return value of platform_get_resource(), so just remove it. Signed-off-by: Fabio Estevam Acked-by: Philipp Zabel --- Changes since v2: - None Changes since v1: - None drivers/media/platform/coda.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/media/platform/coda.c b/drivers/media/platform/coda.c index 5f15aaa..78c9236 100644 --- a/drivers/media/platform/coda.c +++ b/drivers/media/platform/coda.c @@ -2053,11 +2053,6 @@ static int coda_probe(struct platform_device *pdev) /* Get memory for physical registers */ res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - if (res == NULL) { - dev_err(&pdev->dev, "failed to get memory region resource\n"); - return -ENOENT; - } - dev->regs_base = devm_ioremap_resource(&pdev->dev, res); if (IS_ERR(dev->regs_base)) return PTR_ERR(dev->regs_base);