freebsd-dev/sys/cam/nvme
Brooks Davis 93489854f4 nda(4): Remove unnecessary union and avoid Clang -Wsizeof-array-divwarning
Clang trunk recently gained this new warning, and complains about the
sizeof(trim->data) / sizeof(struct nvme_dsm_range) expression, since
the left hand side's element type (char) does not match the right hand
side's type. The byte buffer is unnecessary so we can remove it to clean
up the code and fix the warning at the same time.

No functional change.

Submitted by:	James Clarke <jrtc27@jrtc27.com>
Reviewed by:	imp
Sponsored by:	DARPA, AFRL
Differential Revision:	https://reviews.freebsd.org/D21912
2019-10-24 22:23:53 +00:00
..
nvme_all.c Make cam_error_print() decode NVMe commands. 2019-04-02 19:37:52 +00:00
nvme_all.h Make cam_error_print() decode NVMe commands. 2019-04-02 19:37:52 +00:00
nvme_da.c nda(4): Remove unnecessary union and avoid Clang -Wsizeof-array-divwarning 2019-10-24 22:23:53 +00:00
nvme_xpt.c Take proper lock in ses_setphyspath_callback(). 2019-08-29 17:02:02 +00:00