[PATCH libnvme] fabrics: restore hostname traddr support

Keith Busch kbusch at kernel.org
Mon Sep 27 13:22:06 PDT 2021


On Mon, Sep 27, 2021 at 07:39:53PM +0000, Chaitanya Kulkarni wrote:
> 
> > +static int hostname2traddr(nvme_ctrl_t c)
> > +{
> > +	struct addrinfo *host_info, hints = {.ai_family = AF_UNSPEC};
> > +	char addrstr[NVMF_TRADDR_SIZE];
> 
> do we need to setup the addrstr to 0 with = { 0 }; ?

Looks like it's unconditionally set if it is actually used, so should be
fine as-is.

Patch applied.



More information about the Linux-nvme mailing list