summaryrefslogtreecommitdiff
path: root/kernel/xpp/xproto.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/xpp/xproto.h')
-rw-r--r--kernel/xpp/xproto.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/kernel/xpp/xproto.h b/kernel/xpp/xproto.h
index cbf0726..f889b3a 100644
--- a/kernel/xpp/xproto.h
+++ b/kernel/xpp/xproto.h
@@ -147,15 +147,16 @@ bool valid_xpd_addr(const struct xpd_addr *addr);
do { \
int pack_len = RPACKET_SIZE(card,op); \
\
- if(!TRANSPORT_RUNNING(xbus)) \
+ if(XBUS_IS(xbus, DISCONNECTED)) \
return -ENODEV; \
- frm = ALLOC_SEND_XFRAME(xbus); \
- if(!frm) \
+ (frm) = ALLOC_SEND_XFRAME(xbus); \
+ if(!(frm)) \
return -ENOMEM; \
(p) = xframe_next_packet(frm, pack_len); \
if(!(p)) \
return -ENOMEM; \
XPACKET_INIT(p, card, op, to, 0, 0); \
+ (frm)->usec_towait = 0; \
} while(0)
#endif