]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
nvme: fix unreacheable code in verify_cmd()
authorMaurizio Lombardi <mlombard@redhat.com>
Tue, 8 Nov 2022 14:28:51 +0000 (15:28 +0100)
committerDaniel Wagner <dwagner@suse.de>
Wed, 9 Nov 2022 09:36:28 +0000 (10:36 +0100)
commit3bc7a50707205dd8f6bdc9834fd3d958c11f3eb5
tree09b2c56a5e9801e0c4b262142180647170824271
parent4dda01cbe8a45bae852216b335d178af1c7b7b11
nvme: fix unreacheable code in verify_cmd()

the "if (err < 0)" condition should be checked before "if (err)",
otherwise it would be never caught.

Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>
nvme.c