diff mbox

[12/14] arch/arm/plat-omap: Drop an unnecessary NULL test

Message ID Pine.LNX.4.64.0910170842120.9213@ask.diku.dk (mailing list archive)
State Accepted
Commit d067810bbe621c19ab96e913877c90b1b2e8bcc1
Delegated to: Tony Lindgren
Headers show

Commit Message

Julia Lawall Oct. 17, 2009, 6:42 a.m. UTC
None
diff mbox

Patch

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));