mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
[IA64] A few clean ups in __xen_create/destroy_contiguous_region.
This is the IA64 counter part of the C/S 10563:a75c1bdfe76146ad591574d805be5be0a3098d2a of xen-unstable.hg Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
This commit is contained in:
1 parent
50d4028f84
commit
db19e295c9
1 file changed
+2
-2
@@ -198,7 +198,7 @@ __xen_create_contiguous_region(unsigned long vstart,
|
||||
.nr_exchanged = 0
|
||||
};
|
||||
|
||||
if (order > MAX_CONTIG_ORDER)
|
||||
if (unlikely(order > MAX_CONTIG_ORDER))
|
||||
return -ENOMEM;
|
||||
|
||||
set_xen_guest_handle(exchange.in.extent_start, in_frames);
|
||||
@@ -299,7 +299,7 @@ __xen_destroy_contiguous_region(unsigned long vstart, unsigned int order)
|
||||
if (!test_bit(start_gpfn, contiguous_bitmap))
|
||||
return;
|
||||
|
||||
if (order > MAX_CONTIG_ORDER)
|
||||
if (unlikely(order > MAX_CONTIG_ORDER))
|
||||
return;
|
||||
|
||||
set_xen_guest_handle(exchange.in.extent_start, &in_frame);
|
||||
|
||||