Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 376540
b: refs/heads/master
c: ae249b5
h: refs/heads/master
v: v3
  • Loading branch information
Helge Deller committed Jun 1, 2013
1 parent 601dfff commit b39e18b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3f108de96ba449a8df3d7e3c053bf890fee2cb95
refs/heads/master: ae249b5fa27f9fba25aa59664d4338efc2dd2394
5 changes: 1 addition & 4 deletions trunk/arch/parisc/include/asm/mmzone.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,14 @@ extern unsigned char pfnnid_map[PFNNID_MAP_MAX];
static inline int pfn_to_nid(unsigned long pfn)
{
unsigned int i;
unsigned char r;

if (unlikely(pfn_is_io(pfn)))
return 0;

i = pfn >> PFNNID_SHIFT;
BUG_ON(i >= ARRAY_SIZE(pfnnid_map));
r = pfnnid_map[i];
BUG_ON(r == 0xff);

return (int)r;
return (int)pfnnid_map[i];
}

static inline int pfn_valid(int pfn)
Expand Down

0 comments on commit b39e18b

Please sign in to comment.