virtio_console: Use bool function return values of true/false not 1/0
authorJoe Perches <joe@perches.com>
Mon, 30 Mar 2015 23:46:10 +0000 (16:46 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Apr 2015 14:15:30 +0000 (16:15 +0200)
Use the normal return values for bool functions

Signed-off-by: Joe Perches <joe@perches.com>
Reviewed-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/virtio_console.c

index 72d7028f779b55801795ef0fe49d9dda8cde7970..50754d2033100851b87f78d06401a3c5c137262d 100644 (file)
@@ -355,7 +355,7 @@ static inline bool use_multiport(struct ports_device *portdev)
         * early_init
         */
        if (!portdev->vdev)
-               return 0;
+               return false;
        return __virtio_test_bit(portdev->vdev, VIRTIO_CONSOLE_F_MULTIPORT);
 }