Skip to content

Commit

Permalink
Xen: fix braces coding style issue in gntdev.c and grant-table.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ruslan Pisarev authored and Konrad Rzeszutek Wilk committed Jul 26, 2011
1 parent 088c05a commit 7b0ac95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions drivers/xen/gntdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion drivers/xen/grant-table.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 7b0ac95

Please sign in to comment.