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: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH 07/21] qemu-char: convert pipe backend to data-driven creation
Date: Mon, 12 Oct 2015 17:18:48 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0


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.

Paolo



reply via email to

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