Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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)
{
	if (!ntb->ops->peer_spad_read)
		return 0;

	return ntb->ops->peer_spad_read(ntb, idx);
}