From 8e15c79afebfa433738fc77c386dc076c2bf0bb7 Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Mon, 2 Feb 2026 12:07:21 -0800 Subject: [PATCH] config_rdma: change omitempty to omitzero This change is a no-op for a pointer, and is only done for consistency with the rest of the code. This should be a part of PR 28 but had somehow slipped. Signed-off-by: Kir Kolyshkin --- config_rdma.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config_rdma.go b/config_rdma.go index a0bd54f..a5c4ada 100644 --- a/config_rdma.go +++ b/config_rdma.go @@ -3,7 +3,7 @@ package cgroups // LinuxRdma for Linux cgroup 'rdma' resource management (Linux 4.11) type LinuxRdma struct { // Maximum number of HCA handles that can be opened. Default is "no limit". - HcaHandles *uint32 `json:"hca_handles,omitempty"` + HcaHandles *uint32 `json:"hca_handles,omitzero"` // Maximum number of HCA objects that can be created. Default is "no limit". - HcaObjects *uint32 `json:"hca_objects,omitempty"` + HcaObjects *uint32 `json:"hca_objects,omitzero"` }