diff options
author | pfg <pfg@FreeBSD.org> | 2016-04-19 23:41:46 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2016-04-19 23:41:46 +0000 |
commit | be4082c832ab3e8ed4b2d4877eb549a54174bf85 (patch) | |
tree | 5ed23465710a6035bce2fb4c78bd08f15ad4ff18 /sys/amd64/linux | |
parent | e2a6cba6516fcfe2c4f3ff73d0f9aa0ba261f548 (diff) | |
download | FreeBSD-src-be4082c832ab3e8ed4b2d4877eb549a54174bf85.zip FreeBSD-src-be4082c832ab3e8ed4b2d4877eb549a54174bf85.tar.gz |
X86: use our nitems() macro when it is avaliable through param.h.
No functional change, only trivial cases are done in this sweep,
Discussed in: freebsd-current
Diffstat (limited to 'sys/amd64/linux')
-rw-r--r-- | sys/amd64/linux/linux_sysvec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/linux/linux_sysvec.c b/sys/amd64/linux/linux_sysvec.c index d8f56c0..07efcb5 100644 --- a/sys/amd64/linux/linux_sysvec.c +++ b/sys/amd64/linux/linux_sysvec.c @@ -186,7 +186,7 @@ static int _bsd_to_linux_trapcode[] = { 15 /* 30 T_RESERVED */ }; #define bsd_to_linux_trapcode(code) \ - ((code)<sizeof(_bsd_to_linux_trapcode)/sizeof(*_bsd_to_linux_trapcode)? \ + ((code)<nitems(_bsd_to_linux_trapcode)? \ _bsd_to_linux_trapcode[(code)]: \ LINUX_T_UNKNOWN) |