Remove FreeBSD 8 support from virtio.

The sbuf API has evolved since 8, as have many others. The other API sweeps
didn't make the changes conditional, so this is now noise.
This commit is contained in:
Warner Losh 2020-03-01 18:18:07 +00:00
parent 6773051162
commit 5f8395cce4

View File

@ -157,12 +157,7 @@ virtio_describe(device_t dev, const char *msg,
if (n > 0)
sbuf_cat(&sb, ">");
#if __FreeBSD_version < 900020
sbuf_finish(&sb);
if (sbuf_overflowed(&sb) == 0)
#else
if (sbuf_finish(&sb) == 0)
#endif
device_printf(dev, "%s\n", sbuf_data(&sb));
sbuf_delete(&sb);