Xen: fix braces coding style issue in gntdev.c and grant-table.c
authorRuslan Pisarev <ruslan@rpisarev.org.ua>
Tue, 26 Jul 2011 11:16:26 +0000 (14:16 +0300)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 26 Jul 2011 17:31:58 +0000 (13:31 -0400)
This is a patch to the gntdev.c and grant-table.c files that fixed up
braces errors found by the checkpatch.pl tools.

Signed-off-by: Ruslan Pisarev <ruslan@rpisarev.org.ua>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/gntdev.c
drivers/xen/grant-table.c

index f914b26cf0c2efdfac05b8af9e6d9b8a37124dfc..772a5b8bbf2e8b16a2ca73ce204d3a403261f775 100644 (file)
@@ -188,9 +188,8 @@ static void gntdev_put_map(struct grant_map *map)
 
        atomic_sub(map->count, &pages_mapped);
 
-       if (map->notify.flags & UNMAP_NOTIFY_SEND_EVENT) {
+       if (map->notify.flags & UNMAP_NOTIFY_SEND_EVENT)
                notify_remote_via_evtchn(map->notify.event);
-       }
 
        if (map->pages) {
                if (!use_ptemod)
index fd725cde6ad174bc7048c2e6dd9aa268b061ae6d..3a3dceb7063ac76fa689044118c2359d70db4023 100644 (file)
@@ -193,7 +193,7 @@ int gnttab_query_foreign_access(grant_ref_t ref)
 
        nflags = shared[ref].flags;
 
-       return (nflags & (GTF_reading|GTF_writing));
+       return nflags & (GTF_reading|GTF_writing);
 }
 EXPORT_SYMBOL_GPL(gnttab_query_foreign_access);