Skip to content
Commit 788b041a authored by Alexander Fomichev's avatar Alexander Fomichev Committed by Jon Mason
Browse files

ntb_hw_switchtec: Fix ntb_mw_clear_trans error if size == 0



ntb_mw_set_trans() should work as ntb_mw_clear_trans() when size == 0 and/or
addr == 0. But error in xlate_pos checking condition prevents this.
Fix the condition to make ntb_mw_clear_trans() working.

Fixes: 87d11e64 (NTB: switchtec_ntb: Add memory window support)
Signed-off-by: default avatarAlexander Fomichev <fomichev.ru@gmail.com>
Reviewed-by: default avatarLogan Gunthorpe <logang@deltatee.com>
Signed-off-by: default avatarJon Mason <jdmason@kudzu.us>
parent 2ef97a6c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment