Commit 98b34e4
fabrics: update return values for dim
The nvme dim command returns a zero even for failure scenarios
as shown below:
nvme0 DIM register command error. Status:0xffffffff -
Operation not supported
echo $?
0
Fix this by ensuring appropriate values are returned for success
and failure scenarios. And while at it, remove a couple of
superfluous braces too here.
Signed-off-by: Martin George <[email protected]>1 parent a3d887e commit 98b34e4
1 file changed
+7
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1430 | 1430 | | |
1431 | 1431 | | |
1432 | 1432 | | |
1433 | | - | |
| 1433 | + | |
1434 | 1434 | | |
1435 | 1435 | | |
1436 | 1436 | | |
| |||
1451 | 1451 | | |
1452 | 1452 | | |
1453 | 1453 | | |
| 1454 | + | |
| 1455 | + | |
1454 | 1456 | | |
1455 | 1457 | | |
1456 | 1458 | | |
| |||
1530 | 1532 | | |
1531 | 1533 | | |
1532 | 1534 | | |
1533 | | - | |
1534 | | - | |
1535 | | - | |
| 1535 | + | |
| 1536 | + | |
1536 | 1537 | | |
1537 | 1538 | | |
1538 | 1539 | | |
| |||
1551 | 1552 | | |
1552 | 1553 | | |
1553 | 1554 | | |
1554 | | - | |
| 1555 | + | |
1555 | 1556 | | |
1556 | 1557 | | |
1557 | 1558 | | |
1558 | | - | |
| 1559 | + | |
1559 | 1560 | | |
0 commit comments