qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 07/21] qemu-char: convert pipe backend to data-d


From: Eric Blake
Subject: Re: [Qemu-devel] [PATCH 07/21] qemu-char: convert pipe backend to data-driven creation
Date: Mon, 12 Oct 2015 09:21:40 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

On 10/12/2015 09:18 AM, Paolo Bonzini wrote:
> 
> 
> On 12/10/2015 17:16, Eric Blake wrote:
>>> rp)
>>>>  {
>>>> +    ChardevHostdev *opts = backend->pipe;
>>>>      int fd_in, fd_out;
>>>>      char filename_in[CHR_MAX_FILENAME_SIZE];
>>>>      char filename_out[CHR_MAX_FILENAME_SIZE];
>>>>      const char *filename = opts->device;
>>>>  
>>>> -    if (filename == NULL) {
>>>> -        fprintf(stderr, "chardev: pipe: no filename given\n");
>>>> -        return NULL;
>>>> -    }
>>>> -
>>>>      snprintf(filename_in, CHR_MAX_FILENAME_SIZE, "%s.in", filename);
>> Do we need assert(filename) here?
>>
>>
> 
> No, "device" is not optional in the definition of ChardevHostdev.

Okay, then with the \n gone,
Reviewed-by: Eric Blake <address@hidden>

(and I'll quit complaining about dead break)

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]