From: Matthew Daley Date: Fri, 8 Nov 2013 00:45:08 +0000 (+1300) Subject: xen/arm: remove pointless if subcondition X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~6009 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=49e547756ed89bef0cb59c311d273fae34074582;p=xen.git xen/arm: remove pointless if subcondition It's already handled just above. Signed-off-by: Matthew Daley Acked-by: Ian Campbell --- diff --git a/xen/common/device_tree.c b/xen/common/device_tree.c index f7d0215848..44253da1c7 100644 --- a/xen/common/device_tree.c +++ b/xen/common/device_tree.c @@ -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);