virtio_console: Use bool function return values of true/false not 1/0
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>
This commit is contained in:
parent
0b509d8d33
commit
f580d730c9
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue