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)
commitc93f09402106f22601838ee2bb0d02bae934b5e5
tree5e8471a9bcdbf63e170380163a987b51f82719d7
parent298b9e44be9592e94c0e69a5d3893cd11f5484fa
caif: check write operations

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>
drivers/net/caif/caif_serial.c