filesys: handle 8bit bools
authorAlan Cox <alan@linux.intel.com>
Thu, 23 Nov 2017 02:25:41 +0000 (02:25 +0000)
committerAlan Cox <alan@linux.intel.com>
Thu, 23 Nov 2017 02:25:41 +0000 (02:25 +0000)
Kernel/filesys.c

index fe3838c..8153c6f 100644 (file)
@@ -849,7 +849,7 @@ void wr_inode(inoptr ino)
 /* isdevice(ino) returns true if ino points to a device */
 bool isdevice(inoptr ino)
 {
-    return (ino->c_node.i_mode & F_CDEV);
+    return !!(ino->c_node.i_mode & F_CDEV);
 }