xen: fix some style issues in p2m.c
The source arch/x86/xen/p2m.c has some coding style issues. Fix them. Signed-off-by: Juergen Gross <jgross@suse.com> Signed-off-by: David Vrabel <david.vrabel@citrix.com>
This commit is contained in:
committed by
David Vrabel
parent
14520c92cb
commit
6f58d89e6c
@@ -922,7 +922,7 @@ int set_foreign_p2m_mapping(struct gnttab_map_grant_ref *map_ops,
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (map_ops[i].flags & GNTMAP_contains_pte) {
|
if (map_ops[i].flags & GNTMAP_contains_pte) {
|
||||||
pte = (pte_t *) (mfn_to_virt(PFN_DOWN(map_ops[i].host_addr)) +
|
pte = (pte_t *)(mfn_to_virt(PFN_DOWN(map_ops[i].host_addr)) +
|
||||||
(map_ops[i].host_addr & ~PAGE_MASK));
|
(map_ops[i].host_addr & ~PAGE_MASK));
|
||||||
mfn = pte_mfn(*pte);
|
mfn = pte_mfn(*pte);
|
||||||
} else {
|
} else {
|
||||||
@@ -1102,8 +1102,7 @@ int m2p_remove_override(struct page *page,
|
|||||||
* hypercall actually returned an error.
|
* hypercall actually returned an error.
|
||||||
*/
|
*/
|
||||||
if (kmap_op->handle == GNTST_general_error) {
|
if (kmap_op->handle == GNTST_general_error) {
|
||||||
printk(KERN_WARNING "m2p_remove_override: "
|
pr_warn("m2p_remove_override: pfn %lx mfn %lx, failed to modify kernel mappings",
|
||||||
"pfn %lx mfn %lx, failed to modify kernel mappings",
|
|
||||||
pfn, mfn);
|
pfn, mfn);
|
||||||
put_balloon_scratch_page();
|
put_balloon_scratch_page();
|
||||||
return -1;
|
return -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user