Page MenuHomeFreeBSD

Remove some redundant assignments and computations.
ClosedPublic

Authored by markj on Jun 22 2020, 12:52 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Mar 27, 10:57 PM
Unknown Object (File)
Feb 25 2024, 10:36 PM
Unknown Object (File)
Jan 31 2024, 4:54 AM
Unknown Object (File)
Jan 4 2024, 5:00 AM
Unknown Object (File)
Dec 20 2023, 3:51 AM
Unknown Object (File)
Dec 13 2023, 1:48 PM
Unknown Object (File)
Dec 10 2023, 2:09 AM
Unknown Object (File)
Nov 19 2023, 4:09 PM
Subscribers

Details

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kib added inline comments.
sys/dev/md/md.c
1561 ↗(On Diff #73465)

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 ↗(On Diff #73465)

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 ↗(On Diff #73636)

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 ↗(On Diff #73662)

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

This revision was automatically updated to reflect the committed changes.