From patchwork Sat Oct 17 06:42:30 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julia Lawall X-Patchwork-Id: 54504 X-Patchwork-Delegate: tony@atomide.com Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n9H6hgC4012193 for ; Sat, 17 Oct 2009 06:43:42 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751848AbZJQGm3 (ORCPT ); Sat, 17 Oct 2009 02:42:29 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752039AbZJQGm3 (ORCPT ); Sat, 17 Oct 2009 02:42:29 -0400 Received: from mgw2.diku.dk ([130.225.96.92]:39210 "EHLO mgw2.diku.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751826AbZJQGm1 (ORCPT ); Sat, 17 Oct 2009 02:42:27 -0400 Received: from localhost (localhost [127.0.0.1]) by mgw2.diku.dk (Postfix) with ESMTP id D524919BBCC; Sat, 17 Oct 2009 08:42:31 +0200 (CEST) Received: from mgw2.diku.dk ([127.0.0.1]) by localhost (mgw2.diku.dk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03663-19; Sat, 17 Oct 2009 08:42:30 +0200 (CEST) Received: from nhugin.diku.dk (nhugin.diku.dk [130.225.96.140]) by mgw2.diku.dk (Postfix) with ESMTP id 947B019BB97; Sat, 17 Oct 2009 08:42:30 +0200 (CEST) Received: from ask.diku.dk (ask.diku.dk [130.225.96.225]) by nhugin.diku.dk (Postfix) with ESMTP id D2C356DF845; Sat, 17 Oct 2009 08:39:55 +0200 (CEST) Received: by ask.diku.dk (Postfix, from userid 3767) id 78E2DF9B2; Sat, 17 Oct 2009 08:42:30 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by ask.diku.dk (Postfix) with ESMTP id 75173F810; Sat, 17 Oct 2009 08:42:30 +0200 (CEST) Date: Sat, 17 Oct 2009 08:42:30 +0200 (CEST) From: Julia Lawall To: tony@atomide.com, Russell King , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: [PATCH 12/14] arch/arm/plat-omap: Drop an unnecessary NULL test Message-ID: MIME-Version: 1.0 X-Virus-Scanned: amavisd-new at diku.dk Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org diff --git a/arch/arm/plat-omap/iovmm.c b/arch/arm/plat-omap/iovmm.c index dc3fac3..21c73d4 100644 --- a/arch/arm/plat-omap/iovmm.c +++ b/arch/arm/plat-omap/iovmm.c @@ -449,7 +449,7 @@ static int map_iovm_area(struct iommu *obj, struct iovm_struct *new, struct scatterlist *sg; u32 da = new->da_start; - if (!obj || !new || !sgt) + if (!obj || !sgt) return -EINVAL; BUG_ON(!sgtable_ok(sgt));