caif: check write operations
authorAlan Cox <alan@linux.intel.com>
Wed, 7 Apr 2010 23:49:31 +0000 (16:49 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Apr 2010 23:49:31 +0000 (16:49 -0700)
write is optional for a tty device. Check that we have a write op rather
than calling NULL.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found