diff --git a/src/dawn_native/metal/BackendMTL.mm b/src/dawn_native/metal/BackendMTL.mm index e931af351d..33bfc9862b 100644 --- a/src/dawn_native/metal/BackendMTL.mm +++ b/src/dawn_native/metal/BackendMTL.mm @@ -194,12 +194,10 @@ namespace dawn_native { namespace metal { // MTLDevice’s counterSets property declares which counter sets it supports. Check // whether it's available on the device before requesting a counter set. id counterSet = nil; - if (device.counterSets != nil) { - for (id set in device.counterSets) { - if ([set.name caseInsensitiveCompare:counterSetName] == NSOrderedSame) { - counterSet = set; - break; - } + for (id set in device.counterSets) { + if ([set.name caseInsensitiveCompare:counterSetName] == NSOrderedSame) { + counterSet = set; + break; } }