Skip to content

Commit 864020e

Browse files
refactor: Merge duplicate if blocks
Signed-off-by: Bellekallu Rajkiran <[email protected]>
1 parent cc72428 commit 864020e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

shared/source/os_interface/linux/xe/ioctl_helper_xe.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1126,16 +1126,13 @@ uint64_t IoctlHelperXe::getFlagsForVmBind(bool bindCapture, bool bindImmediate,
11261126
if (bindCapture) {
11271127
flags |= DRM_XE_VM_BIND_FLAG_DUMPABLE;
11281128
}
1129-
if (bindImmediate) {
1129+
if (bindImmediate || bindMakeResident) {
11301130
flags |= DRM_XE_VM_BIND_FLAG_IMMEDIATE;
11311131
}
11321132

11331133
if (readOnlyResource) {
11341134
flags |= DRM_XE_VM_BIND_FLAG_READONLY;
11351135
}
1136-
if (bindMakeResident) {
1137-
flags |= DRM_XE_VM_BIND_FLAG_IMMEDIATE;
1138-
}
11391136
return flags;
11401137
}
11411138

0 commit comments

Comments
 (0)