summaryrefslogtreecommitdiff
path: root/sys/dev/microcode
diff options
context:
space:
mode:
authormaxv <maxv@NetBSD.org>2018-05-30 16:32:26 +0000
committermaxv <maxv@NetBSD.org>2018-05-30 16:32:26 +0000
commit44266fb307a249d9b70a9b044588797171391ab2 (patch)
tree053b10c8e2ecaaedb058746a024e1e0cd8eef45c /sys/dev/microcode
parent0ab4c0f9d9a19bb789cadbe65aec8dd3021caebb (diff)
Simplify the padding computation. Until now 'padlen' contained the ESP
Trailer (two bytes), and we were doing minus two all the time. Declare 'tlen', which contains padlen+ESP_Trailer+ICV, and use 'struct esptail' instead of hardcoding the construction of the trailer. 'padlen' now indicates only the length of the padding, so no need to do -2.
Diffstat (limited to 'sys/dev/microcode')
0 files changed, 0 insertions, 0 deletions