nvme-status: Don't reduce all negative statuses to ECOMM
Sagi Grimberg
maintainerPATCH v2 1/1 nvme-status: Don't reduce all negative statuses to ECOMM
There should be no reason why we should reduce all the semantic status codes we are getting from the device/driver to a single meaningless status code.
Signed-off-by Sagi Grimberg <[email protected]>
---
Changes from v1:
- return errno instead of status
nvme-status.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
nvme-status.c +1 -1
@@ -142,7 +142,7 @@ __u8 nvme_status_to_errno(int status, bool fabrics)return 0 ;if (status <0 ) -return ECOMM ; +return errno;/* * The actual status code is enough with masking 0xff, but we need to
Signature · 7 lines
2.25.1 _______________________________________________ Linux-nvme mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-nvme
Applied, thank you
_______________________________________________
Linux-nvme mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-nvme