[Phi] fixing zlint error
Mirror Gitea refs to GitHub / mirror (push) Successful in 14s
Build / build (push) Successful in 7m58s
Test / build_and_test (push) Successful in 5m51s

This commit is contained in:
2026-08-20 14:12:27 +02:00
parent 3e12e97fe2
commit b9c12eb599
+2 -2
View File
@@ -92,7 +92,7 @@ pub fn create(allocator: std.mem.Allocator, device: *base.Device, index: u32, fa
@memset(ring_backing, 0); @memset(ring_backing, 0);
const ring_offset = try transport.registerHostMemory(ring_backing); const ring_offset = try transport.registerHostMemory(ring_backing);
errdefer transport.unregisterHostMemory(ring_offset, ring_backing.len) catch {}; errdefer transport.unregisterHostMemory(ring_offset, ring_backing.len) catch @panic("Caught an error while handling an error");
const setup_request: proto.PhiQueueSetupRequest = .{ const setup_request: proto.PhiQueueSetupRequest = .{
.scif_offset = ring_offset, .scif_offset = ring_offset,
@@ -328,7 +328,7 @@ fn prepareSubmit(self: *Self, allocator: std.mem.Allocator, info: Interface.Subm
} }
const offset = try self.transport.registerHostMemory(backing); const offset = try self.transport.registerHostMemory(backing);
errdefer self.transport.unregisterHostMemory(offset, backing.len) catch {}; errdefer self.transport.unregisterHostMemory(offset, backing.len) catch @panic("Caught an error while handling an error");
command_backing = backing; command_backing = backing;
scif_offset = offset; scif_offset = offset;