diff options
author | Pedro F. Giffuni <pfg@FreeBSD.org> | 2016-04-19 23:37:24 +0000 |
---|---|---|
committer | Pedro F. Giffuni <pfg@FreeBSD.org> | 2016-04-19 23:37:24 +0000 |
commit | 73a1170a8c41cb848f17cc0a8839e9dcee3d126e (patch) | |
tree | 346d2ff1b645f831d2f412a7a4be3f6eb1c711b4 /sys/dev/mlx | |
parent | 4ec642f1d61bbab5998f7b19281396ee925f82f0 (diff) | |
download | src-73a1170a8c41cb848f17cc0a8839e9dcee3d126e.tar.gz src-73a1170a8c41cb848f17cc0a8839e9dcee3d126e.zip |
sys/dev: use our nitems() macro when it is avaliable through param.h.
No functional change, only trivial cases are done in this sweep,
Drivers that can get further enhancements will be done independently.
Discussed in: freebsd-current
Notes
Notes:
svn path=/head/; revision=298307
Diffstat (limited to 'sys/dev/mlx')
-rw-r--r-- | sys/dev/mlx/mlx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/mlx/mlx.c b/sys/dev/mlx/mlx.c index 58eb71ba8d37..6d9c49b925f2 100644 --- a/sys/dev/mlx/mlx.c +++ b/sys/dev/mlx/mlx.c @@ -1364,7 +1364,7 @@ mlx_periodic_eventlog_respond(struct mlx_command *mc) /* Mylex vendor-specific message indicating a drive was killed? */ if ((el->el_sensekey == 9) && (el->el_asc == 0x80)) { - if (el->el_asq < (sizeof(mlx_sense_messages) / sizeof(mlx_sense_messages[0]))) { + if (el->el_asq < nitems(mlx_sense_messages)) { reason = mlx_sense_messages[el->el_asq]; } else { reason = "for unknown reason"; |