]> www.infradead.org Git - users/sagi/libnvme.git/commit
mi: fix the return error code.
authorHao Jiang <jianghao@google.com>
Tue, 6 Dec 2022 00:48:35 +0000 (16:48 -0800)
committerDaniel Wagner <wagi@monom.org>
Mon, 6 May 2024 17:07:19 +0000 (19:07 +0200)
commit4382dc00e4a61f0526836d0aa05299b1994d2083
treed329deda669acac9ea872a376e0748ec65c5d2bd
parent41a448da815eda28c63e3e8132f7f40e0aea8afc
mi: fix the return error code.

When returning a system error code (i.e. rc < 0), the function should
return -1 and set errno instead of returning the errno directly. It is
very helpful for the client to handle the rc in an unified way.

Signed-off-by: Hao Jiang <jianghao@google.com>
Signed-off-by: Jinliang Wang <jinliangw@google.com>
src/nvme/mi.c