linuxconsole PoC: drop dead store #1348

pull/1349/head
nick black 4 years ago
parent 9dd710d1e6
commit 03bb1f73c0
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -32,8 +32,8 @@ get_tty_fd(const char* dev){
static bool static bool
is_linux_console(int fd){ is_linux_console(int fd){
int mode, r; int mode;
if( (r = ioctl(fd, KDGETMODE, &mode)) ){ if(ioctl(fd, KDGETMODE, &mode)){
fprintf(stderr, "Not a Linux console, KDGETMODE failed (%s)\n", strerror(errno)); fprintf(stderr, "Not a Linux console, KDGETMODE failed (%s)\n", strerror(errno));
return false; return false;
} }

Loading…
Cancel
Save