Skip to content

Commit

Permalink
small fix for write behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
anroOfCode committed Jan 13, 2013
1 parent 726a79c commit 56a536f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ static ssize_t interface_write(
// wait for an asynchronous callback to occur in
// the form of a semaphore.
interface_bottom->tx(tx_buf_c, pkt_len);
result = down_interruptible(&tx_done_sem);
if (result) {
return -ERESTARTSYS;
}
down(&tx_done_sem);
//if (result) {
// return -ERESTARTSYS;
//}

// Step 4: Finally return and allow other callers to write
// packets.
Expand Down

0 comments on commit 56a536f

Please sign in to comment.