zbd: avoid initializing swd when unnecessary
authorNaohiro Aota <naohiro.aota@wdc.com>
Fri, 28 Feb 2020 07:12:43 +0000 (16:12 +0900)
committerJens Axboe <axboe@kernel.dk>
Wed, 18 Mar 2020 02:05:54 +0000 (20:05 -0600)
commit409a4f291e7f4011f6ccfe748c6ed9786431ddb3
treeb1e88ed312151aa50887fc61dca77328e6ae802f
parent9853da1df43fb5b91097813651f69f50ca098a41
zbd: avoid initializing swd when unnecessary

When enable_check_swd == false, there is no use to initialize swd. Just
disable it in this case.

Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com>
Tested-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
zbd.c