xen/arm: remove pointless if subcondition
authorMatthew Daley <mattjd@gmail.com>
Fri, 8 Nov 2013 00:45:08 +0000 (13:45 +1300)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 11 Nov 2013 16:13:40 +0000 (16:13 +0000)
It's already handled just above.

Signed-off-by: Matthew Daley <mattjd@gmail.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/common/device_tree.c

index f7d021584846ea69bc0319b405545182f1f99fbc..44253da1c7501e6688d41d35a406122d7ab77655 100644 (file)
@@ -906,7 +906,7 @@ static int dt_translate_one(const struct dt_device_node *parent,
         dt_printk(XENLOG_ERR "DT: no ranges; cannot translate\n");
         return 1;
     }
-    if ( ranges == NULL || rlen == 0 )
+    if ( rlen == 0 )
     {
         offset = dt_read_number(addr, na);
         memset(addr, 0, pna * 4);