Skip to content

Commit b99d5cb

Browse files
committed
Make comment less confusing
1 parent 8c9d99e commit b99d5cb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

offload/liboffload/src/OffloadImpl.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,8 @@ Error olGetDeviceInfoImplDetail(ol_device_handle_t Device,
267267
ol_dimensions_t Out{0, 0, 0};
268268
auto Level = Iter->Level + 1;
269269

270+
// Check the "children" of the current info for x/y/z components.
271+
// We ignore any components that don't match.
270272
while ((++Iter)->Level == Level) {
271273
switch (Iter->Key[0]) {
272274
case 'x':
@@ -278,9 +280,6 @@ Error olGetDeviceInfoImplDetail(ol_device_handle_t Device,
278280
case 'z':
279281
Out.z = std::stoi(Iter->Value);
280282
break;
281-
default:
282-
// Ignore any extra values
283-
(void)0;
284283
}
285284
}
286285

0 commit comments

Comments
 (0)