pager: minor cleanups

- remove unused MF_END (that only makes sense for enums without holes,
  this one is a set of bits masks)
- remove useless goto in pager_req_create()
- init maxprot to 0 from the start, it's not used in the error cases
  (except for debug print)

Change-Id: Ic56c0754824b99f8a7e45fa8e99b8fe3e7c7e592
This commit is contained in:
Dominique Martinet
2018-09-13 09:48:52 +09:00
committed by Masamichi Takagi
parent b1681f4a3a
commit 13e71ac9dc
2 changed files with 1 additions and 10 deletions

View File

@ -44,7 +44,6 @@ enum {
MF_XPMEM = 0x10000, /* To identify XPMEM attachment pages for rusage accounting */
MF_ZEROOBJ = 0x20000, /* To identify pages of anonymous, on-demand paging ranges for rusage accounting */
MF_SHM = 0x40000,
MF_END
};
#define MEMOBJ_READY 0