diff options
| author | Shao Mingyin <shao.mingyin@zte.com.cn> | 2026-11-04 21:14:46 +0800 |
|---|---|---|
| committer | Keith Busch <kbusch@kernel.org> | 2026-11-05 08:53:01 -0800 |
| commit | c92055eb22a8e135011c14c5eb40f5da0a0c8153 (patch) | |
| tree | fa4b50506e6550c7fd89c4a6ee6db9a7bf2debc6 /include/linux | |
| parent | cf399d4abbeddc317f8160a79fefb4016c469862 (diff) | |
nvmet: drop the redundant auth check in nvmet_parse_io_cmd()
nvmet_parse_io_cmd() calls nvmet_check_auth_status() and then
nvmet_check_ctrl_status(), which performs the same check again. The
first call cannot fail either: this path only handles commands from I/O
queues, and nvmet_check_auth_status() returns true unconditionally for
qid > 0. Drop the duplicate.
No functional change.
Signed-off-by: Shao Mingyin <shao.mingyin@zte.com.cn>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
