[PATCH 08/10] fabrics: use "const char *" in struct config
Chaitanya Kulkarni
Chaitanya.Kulkarni at wdc.com
Mon Mar 8 07:08:12 GMT 2021
On 3/5/21 16:36, mwilck at suse.com wrote:
> From: Martin Wilck <mwilck at suse.com>
>
> This is easily done, and allows passing in some const char* pointers
> that would otherwise need to be strdup()d first.
>
> Do not use const char * for cfg->device, because we may need to free()
> it.
>
> Signed-off-by: Martin Wilck <mwilck at suse.com>
Looks good.
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni at wdc.com>
More information about the Linux-nvme
mailing list