Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 324765
b: refs/heads/master
c: a47bf24
h: refs/heads/master
i:
  324763: ea5fd35
v: v3
  • Loading branch information
Devendra Naga authored and Greg Kroah-Hartman committed Sep 4, 2012
1 parent 1cf5fb6 commit 029c17b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 375d8886bc76871f012a337b4d6d753970d9fb36
refs/heads/master: a47bf2452b05e6f7a3bbbe2433b0a7a6c1f4a5e4
2 changes: 1 addition & 1 deletion trunk/drivers/staging/cxt1e1/linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ c4_linux_xmit (struct sk_buff * skb, struct net_device * ndev)
priv = hdlc->priv;

rval = musycc_start_xmit (priv->ci, priv->channum, skb);
return -rval;
return rval;
}

static const struct net_device_ops chan_ops = {
Expand Down
10 changes: 5 additions & 5 deletions trunk/drivers/staging/cxt1e1/musycc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1761,15 +1761,15 @@ musycc_start_xmit (ci_t * ci, int channum, void *mem_token)
u_int32_t len;

if (!(ch = sd_find_chan (ci, channum)))
return ENOENT;
return -ENOENT;

if (ci->state != C_RUNNING) /* full interrupt processing available */
return EINVAL;
return -EINVAL;
if (ch->state != UP)
return EINVAL;
return -EINVAL;

if (!(ch->status & TX_ENABLED))
return EROFS; /* how else to flag unwritable state ? */
return -EROFS; /* how else to flag unwritable state ? */

#ifdef RLD_TRANS_DEBUGx
if (1 || cxt1e1_log_level >= LOG_MONITOR2)
Expand Down Expand Up @@ -1836,7 +1836,7 @@ musycc_start_xmit (ci_t * ci, int channum, void *mem_token)
#if 0
spin_unlock_irqrestore (&ch->ch_txlock, flags);
#endif
return EBUSY; /* tell user to try again later */
return -EBUSY; /* tell user to try again later */
}
/**************************************************/
/** Put the user data into MUSYCC data buffer(s) **/
Expand Down

0 comments on commit 029c17b

Please sign in to comment.