[PATCH 1/9] libnvme: annotate nvme_path::ana_state with !accessors:none
Nilay Shroff
nilay at linux.ibm.com
Tue Mar 24 06:08:02 PDT 2026
On 3/24/26 2:25 PM, Daniel Wagner wrote:
> On Sat, Mar 21, 2026 at 08:58:00PM +0530, Nilay Shroff wrote:
>> +__public char *nvme_path_get_ana_state(nvme_path_t p)
>> +{
>> + _cleanup_free_ char *ana_state = NULL;
>> +
>> + ana_state = nvme_get_path_attr(p, "ana_state");
>> + if (ana_state) {
>> + if (!p->ana_state || strcmp(ana_state, p->ana_state)) {
>> + free(p->ana_state);
>> + p->ana_state = strdup(ana_state);
>> +
>> + }
>
> a couple of tabs indention here
>
Ah, good catch. Will fix.
>> + }
>> +
>> + return p->ana_state;
>> +}
Thanks,
--Nilay
More information about the Linux-nvme
mailing list