From patchwork Fri Sep 2 17:32:31 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ohad Ben Cohen X-Patchwork-Id: 1122712 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p82HXObP021282 for ; Fri, 2 Sep 2011 17:33:24 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753876Ab1IBRdJ (ORCPT ); Fri, 2 Sep 2011 13:33:09 -0400 Received: from mail-wy0-f174.google.com ([74.125.82.174]:41213 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753803Ab1IBRdE (ORCPT ); Fri, 2 Sep 2011 13:33:04 -0400 Received: by mail-wy0-f174.google.com with SMTP id 22so2141299wyh.19 for ; Fri, 02 Sep 2011 10:33:03 -0700 (PDT) Received: by 10.227.121.69 with SMTP id g5mr1288146wbr.71.1314984782970; Fri, 02 Sep 2011 10:33:02 -0700 (PDT) Received: from localhost.localdomain (93-173-174-182.bb.netvision.net.il [93.173.174.182]) by mx.google.com with ESMTPS id fq2sm2376189wbb.24.2011.09.02.10.33.00 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 02 Sep 2011 10:33:01 -0700 (PDT) From: Ohad Ben-Cohen To: Cc: , Hiroshi DOYU , Laurent Pinchart , Joerg Roedel , David Woodhouse , , David Brown , Arnd Bergmann , , Ohad Ben-Cohen Subject: [PATCH 2/7] iommu/omap: cleanup: remove a redundant statement Date: Fri, 2 Sep 2011 20:32:31 +0300 Message-Id: <1314984756-4400-3-git-send-email-ohad@wizery.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1314984756-4400-1-git-send-email-ohad@wizery.com> References: <1314984756-4400-1-git-send-email-ohad@wizery.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Fri, 02 Sep 2011 17:33:24 +0000 (UTC) Tiny cleanup that removes a redundant 'return' statement. Signed-off-by: Ohad Ben-Cohen --- drivers/iommu/omap-iommu.c | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/iommu/omap-iommu.c b/drivers/iommu/omap-iommu.c index 90744af..4311bc3 100644 --- a/drivers/iommu/omap-iommu.c +++ b/drivers/iommu/omap-iommu.c @@ -1069,12 +1069,10 @@ static int omap_iommu_map(struct iommu_domain *domain, unsigned long da, iotlb_init_entry(&e, da, pa, flags); ret = omap_iopgtable_store_entry(oiommu, &e); - if (ret) { + if (ret) dev_err(dev, "omap_iopgtable_store_entry failed: %d\n", ret); - return ret; - } - return 0; + return ret; } static int omap_iommu_unmap(struct iommu_domain *domain, unsigned long da,