[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] APEI: pull a signedness check ahead for Coverity's sake
>>> On 09.06.16 at 16:24, <julien.grall@xxxxxxx> wrote: > On 08/06/16 12:37, Jan Beulich wrote: >> On 64-bit architectures (which is all we care about right now in ACPI >> code), the value coming from a __u32 field makes "len" positive anyway, >> but since from an abstract pov the tool is right, let's just re-order >> things. > > All the usage of len are unsigned, so why do we want to keep len signed? Because it serves as the return value of the function, and the function's return type is signed. Also note how the change makes the code correct even for 32-bit architectures, even if we don't care about such in ACPI code right now. Jan _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |