|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [XEN v1 1/9] xen/arm: Remove the extra assignment
Hi, In the previous version, I have suggested the following title: xen/ns16550: Remove unneeded truncation check in the DT init code This would also address Jan's comment. On 15/12/2022 19:32, Ayan Kumar Halder wrote: As "io_size" and "uart->io_size" are both u64, so there will be no truncation. Thus, one can remove the ASSERT() and extra assignment. In an earlier commit (7c1de0038895), Why is this line shorter than the others? "ns16550.io_size" was u32 and "io_size" was u64. Thus, the ASSERT() was needed to check if the values are the same. However, in a later commit (c9f8e0aee507), "ns16550.io_size" was changed to u64. Thus, the ASSERT() became redundant. You missed my comment here:"Those two paragraphs are explaining why the truncation check is removed. So I think they should be moved first. Then you can add the initial paragraph to explain the resolution".
Cheers, -- Julien Grall
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |