Merge branch 'master' of https://github.com/EtchedPixels/FUZIX
authorAlan Cox <alan@linux.intel.com>
Wed, 7 Oct 2015 20:37:20 +0000 (21:37 +0100)
committerAlan Cox <alan@linux.intel.com>
Wed, 7 Oct 2015 20:37:20 +0000 (21:37 +0100)
1  2 
Kernel/platform-coco3/devtty.c

@@@ -515,7 -515,9 +515,10 @@@ int gfx_ioctl(uint8_t minor, uarg_t arg
                if( minor == curminor ) apply_gime( minor );
                return 0;
        }
-  error:       udata.u_error = ENOTTY;
 - notty: udata.u_error = ENOTTY;
++      udata.u_error = ENOTTY;
+       return -1;
 - inval:       udata.u_error = EINVAL;
++
++inval:        udata.u_error = EINVAL;
        return -1;
  }