qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v7 08/16] sdhci: add basic Spec v1 capabilities


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH v7 08/16] sdhci: add basic Spec v1 capabilities
Date: Thu, 18 Jan 2018 17:04:17 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0

On 18/01/2018 16:45, Philippe Mathieu-Daudé wrote:
>>      s->version = (SDHC_HCVER_VENDOR << 8) | (s->spec_version - 1);
>>  
>> +    capab = sdhci_init_capareg(s, errp);
>> +    if (errp && *errp) {
> Paolo said this is wrong, I'll resping using UINT64_MAX as error and
> checking "if (capab == UINT64_MAX) { return; }"

If all-ones capabilities is valid or can be valid in the future, then
perhaps it is better to use local_err, and not use the return value at
all if local_err != NULL.

Paolo



reply via email to

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