Commit 564828d4cb75b916b3147a595e56fb736f3746ab

Authored by Jeff Buchbinder
Committed by GitHub
2 parents 0b685142 d7f9e068

Merge pull request #31 from stappersg/less_generic_error_code_ENOTCONN

Less generic error code for write()
Showing 1 changed file with 1 additions and 1 deletions
module/tty0tty.c
... ... @@ -214,7 +214,7 @@ static int tty0tty_write(struct tty_struct *tty, const unsigned char *buffer,
214 214 int count)
215 215 {
216 216 struct tty0tty_serial *tty0tty = tty->driver_data;
217   - int retval = -EINVAL;
  217 + int retval = -ENOTCONN;
218 218 struct tty_struct *ttyx = NULL;
219 219  
220 220 if (!tty0tty)
... ...