summaryrefslogtreecommitdiff
path: root/drivers/dahdi/xpp/xproto.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/dahdi/xpp/xproto.h')
-rw-r--r--drivers/dahdi/xpp/xproto.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dahdi/xpp/xproto.h b/drivers/dahdi/xpp/xproto.h
index 0034ab6..efa5e88 100644
--- a/drivers/dahdi/xpp/xproto.h
+++ b/drivers/dahdi/xpp/xproto.h
@@ -147,9 +147,9 @@ bool valid_xpd_addr(const struct xpd_addr *addr);
do { \
int pack_len = RPACKET_SIZE(card,op); \
\
- if(XBUS_IS(xbus, DISCONNECTED)) \
+ if(!XBUS_FLAGS(xbus, CONNECTED)) \
return -ENODEV; \
- (frm) = ALLOC_SEND_XFRAME(xbus); \
+ (frm) = ALLOC_SEND_XFRAME(xbus); \
if(!(frm)) \
return -ENOMEM; \
(p) = xframe_next_packet(frm, pack_len); \