]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
nvmecontrol: Fix condition when print number of Firmware Slots and Firmware Slot1...
authorWanpeng Qian <wanpengqian@gmail.com>
Mon, 14 Nov 2022 12:59:11 +0000 (13:59 +0100)
committerCorvin Köhne <corvink@FreeBSD.org>
Tue, 15 Nov 2022 06:48:20 +0000 (07:48 +0100)
commit0fd43b0c6a76d7be4d9673837a7d7099b6a29ace
treee0ebe3731def1797e146996b3c11bb6faf42a9c6
parent40e0fa10f58d90744c2857b57adf0ddbce1a1e1c
nvmecontrol: Fix condition when print number of Firmware Slots and Firmware Slot1 Readonly.

The Number of Firmware Slots should never be zero. So, a Firmware Slot 1
should always exist. For that reason, always print the Number of
Firmware Slots and the Firmware Slot 1 Read-Only value.

Reviewed by: imp
Approved by: manu (mentor)
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D34700
sbin/nvmecontrol/identify_ext.c