Skip to content
Snippets Groups Projects
Commit 5c43c52d authored by Steven Wahl's avatar Steven Wahl Committed by Jon Mason
Browse files

NTB: correct ntb_peer_spad_read for case when callback is not supplied.


Correct ntb_peer_spad_read for case when callback is not supplied

Signed-off-by: default avatarSteve Wahl <Steve.Wahl@dell.com>
Acked-by: default avatarAllen Hubbe <Allen.Hubbe@dell.com>
Signed-off-by: default avatarJon Mason <jdmason@kudzu.us>
parent bc034e52
No related branches found
No related tags found
No related merge requests found
...@@ -968,6 +968,9 @@ static inline int ntb_peer_spad_addr(struct ntb_dev *ntb, int idx, ...@@ -968,6 +968,9 @@ static inline int ntb_peer_spad_addr(struct ntb_dev *ntb, int idx,
*/ */
static inline u32 ntb_peer_spad_read(struct ntb_dev *ntb, int idx) static inline u32 ntb_peer_spad_read(struct ntb_dev *ntb, int idx)
{ {
if (!ntb->ops->peer_spad_read)
return 0;
return ntb->ops->peer_spad_read(ntb, idx); return ntb->ops->peer_spad_read(ntb, idx);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment