diff options
| author | Jeff Moyer <[email protected]> | 2018-06-18 09:57:12 -0400 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2018-06-19 22:02:25 -0400 |
| commit | 5b9d397447f8c03843198b573d7cecf8893523fb (patch) | |
| tree | d1a550a378ffb0e77f02a15ff61b79f2f081d772 /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | b3a8aa90c46095cbad454eb068bfb5a8eb56d4e3 (diff) | |
scsi: sg: clean up gfp_mask in sg_build_indirect
commit a45b599ad808c ("scsi: sg: allocate with __GFP_ZERO in
sg_build_indirect()") changed the call to alloc_pages to always use
__GFP_ZERO. Just above that, though, there was this:
if (!capable(CAP_SYS_ADMIN) || !capable(CAP_SYS_RAWIO))
gfp_mask |= __GFP_ZERO;
And there's only one user of the gfp_mask. Just or in the __GFP_ZERO
flag at the top of the function and be done with it.
Signed-off-by: Jeff Moyer <[email protected]>
Acked-by: Douglas Gilbert <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions