mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 23:56:39 +08:00
Remove default parameter.
Change-Id: I7da92801c7fa45b66bb7d770154d901bd3af9f5c
This commit is contained in:
committed by
sys_ocldev
parent
561cdb7df5
commit
415623b08f
@@ -53,11 +53,10 @@ class Device : public BaseObject<_cl_device_id> {
|
||||
static const cl_ulong objectMagic = 0x8055832341AC8D08LL;
|
||||
|
||||
template <typename T>
|
||||
static T *create(const HardwareInfo *pHwInfo,
|
||||
bool isRootDevice = true) {
|
||||
static T *create(const HardwareInfo *pHwInfo) {
|
||||
pHwInfo = getDeviceInitHwInfo(pHwInfo);
|
||||
T *device = new T(*pHwInfo);
|
||||
if (false == createDeviceImpl(pHwInfo, isRootDevice, *device)) {
|
||||
if (false == createDeviceImpl(pHwInfo, true, *device)) {
|
||||
delete device;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user