> + if (list_empty(&subsys->namespaces)) {
> + subsys->max_nsid = 0;
> + } else {
> + struct nvmet_ns *ns =
> + list_last_entry(&subsys->namespaces, struct nvmet_ns, dev_link);
> +
> + subsys->max_nsid = ns->nsid;
> + }
The line is still too long, but I'll fix it up.