daemon/cdi.go
Method cdiHandler.injectCDIDevices
has 5 return statements (exceeds 4 allowed). Open
Open
func (c *cdiHandler) injectCDIDevices(s *specs.Spec, dev *deviceInstance) error {
if dev.req.Count != 0 {
return errdefs.InvalidParameter(errors.New("unexpected count in CDI device request"))
}
if len(dev.req.Options) > 0 {