Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
| sys/dev/virtio/virtio_endian.h | ||
|---|---|---|
| 44–45 | This function looks like a small optimization. I don't think that this optimization makes sense because it makes the code harder to read for no value. static inline uint16_t
virtio_htog16(bool modern, uint16_t val)
{
if (modern)
return (htole16(val));
else
return (val);
} | |
| sys/dev/virtio/virtio_endian.h | ||
|---|---|---|
| 44–45 | I agree with Corvin's suggestion and think it is more readable. | |