Page MenuHomeFreeBSD

Remove some redundant assignments and computations.
ClosedPublic

Authored by markj on Jun 22 2020, 12:52 PM.
Tags
None
Referenced Files
F110077413: D25400.diff
Thu, Feb 13, 8:18 AM
Unknown Object (File)
Fri, Jan 31, 2:53 AM
Unknown Object (File)
Sun, Jan 26, 4:06 PM
Unknown Object (File)
Sat, Jan 25, 3:16 AM
Unknown Object (File)
Dec 19 2024, 9:53 AM
Unknown Object (File)
Nov 22 2024, 9:45 PM
Unknown Object (File)
Nov 19 2024, 8:50 PM
Unknown Object (File)
Nov 11 2024, 6:05 AM
Subscribers

Details

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 31956
Build 29506: arc lint + arc unit

Event Timeline

kib added inline comments.
sys/dev/md/md.c
1561

I do not see much sense in asserting this, but do not object strongly.

This revision is now accepted and ready to land.Jun 22 2020, 2:31 PM
sys/compat/linuxkpi/common/src/linux_page.c
223

AFAIK, the mips and powerpc versions of ptoa() have a single implementation that is used on both 32- and 64-bit machines, and on 64-bit machine there is no guarantee that the argument is converted to a 64-bit quantity.

markj marked 2 inline comments as done.

Address feedback.

This revision now requires review to proceed.Jun 25 2020, 3:04 PM
sys/compat/linuxkpi/common/src/linux_page.c
223

I think size_t or vm_offset_t would be better there.

This revision is now accepted and ready to land.Jun 25 2020, 8:58 PM
alc added inline comments.
sys/compat/linuxkpi/common/src/linux_page.c
202

Here is another possible ptoa() conversion that is identical to the first.

This revision was automatically updated to reflect the committed changes.