~ubuntu-branches/ubuntu/lucid/linux-rt/lucid

« back to all changes in this revision

Viewing changes to drivers/char/pcmcia/ipwireless/tty.c

  • Committer: Bazaar Package Importer
  • Author(s): Luke Yelavich
  • Date: 2009-08-05 23:00:52 UTC
  • Revision ID: james.westby@ubuntu.com-20090805230052-7xedvqcyk9dnnxb2
Tags: 2.6.31-1.1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
320
320
        struct ipw_tty *tty = linux_tty->driver_data;
321
321
 
322
322
        if (!tty)
323
 
                return -ENODEV;
 
323
                return 0;
324
324
 
325
325
        if (!tty->open_count)
326
 
                return -EINVAL;
 
326
                return 0;
327
327
 
328
328
        return tty->tx_bytes_queued;
329
329
}