diff options
author | Christoph Hellwig <[email protected]> | 2022-09-20 16:09:57 +0200 |
---|---|---|
committer | Christoph Hellwig <[email protected]> | 2022-09-27 09:22:09 +0200 |
commit | ab46d8d40f01487bf637428c4767f0e75ac2a95a (patch) | |
tree | a21853a733f4ef42fea447c2b56253e2ca9cb284 /drivers/usb/cdns3/cdns3-plat.c | |
parent | 1c32a8012b7fabe469b6af826edfd4ae2a6201d3 (diff) |
nvmet: add helpers to set the result field for connect commands
The code to set the result field for the admin and I/O connect commands
is not only verbose and duplicated, but also violates the aliasing
rules as it accesses both the u16 and u32 members in the union.
Add a little helper to sort all that out.
Fixes: db1312dd9548 ("nvmet: implement basic In-Band Authentication")
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Sagi Grimberg <[email protected]>
Reviewed-by: Hannes Reinecke <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-plat.c')
0 files changed, 0 insertions, 0 deletions