ib_srpt: Change one occurrence of WARN_ON() into __WARN().

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3916 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2011-11-08 19:50:31 +00:00
parent 016798ef64
commit cd563e1fb7

View File

@@ -1473,7 +1473,11 @@ static void srpt_handle_rdma_comp(struct srpt_rdma_ch *ch,
} else if (opcode == SRPT_RDMA_ABORT) {
ioctx->rdma_aborted = true;
} else {
WARN_ON(opcode != SRPT_RDMA_READ_LAST);
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 25)
__WARN();
#else
WARN_ON(true);
#endif
PRINT_ERROR("%s[%d]: scmnd == NULL (opcode %d)", __func__,
__LINE__, opcode);
}