qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PULL 2/4] usb-mtp: fix some usb_mtp_write_data return


From: Bandan Das
Subject: Re: [Qemu-devel] [PULL 2/4] usb-mtp: fix some usb_mtp_write_data return paths
Date: Mon, 18 Mar 2019 11:01:18 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

Peter Maydell <address@hidden> writes:
...
>> +                } else {
>> +                    usb_mtp_queue_result(s, RES_STORE_FULL, d->trans,
>> +                                         0, 0, 0, 0);
>> +                }
>
> Presumably one of these should be RES_OK of some kind ?
>

Ah, yes, that's a typo.

>>                  goto free;
>>              }
>
> It does seem like a more consistent approach if we can say
> "usb_mtp_write_data() will always queue an appropriate result"
> rather than having it do that for some use cases and not others,
> so I like this suggestion.
>
Sounds good, I will send a patch.

> thanks
> -- PMM



reply via email to

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