s390: use false/true when using bool
Yet another trivial patch to reduce the noise that coccinelle generates. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
committed by
Martin Schwidefsky
parent
0b92515916
commit
970ba6ac6a
@@ -32,7 +32,7 @@ static bool machine_has_cpu_mhz;
|
|||||||
void __init cpu_detect_mhz_feature(void)
|
void __init cpu_detect_mhz_feature(void)
|
||||||
{
|
{
|
||||||
if (test_facility(34) && __ecag(ECAG_CPU_ATTRIBUTE, 0) != -1UL)
|
if (test_facility(34) && __ecag(ECAG_CPU_ATTRIBUTE, 0) != -1UL)
|
||||||
machine_has_cpu_mhz = 1;
|
machine_has_cpu_mhz = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void update_cpu_mhz(void *arg)
|
static void update_cpu_mhz(void *arg)
|
||||||
|
|||||||
@@ -492,7 +492,7 @@ static void __init stp_reset(void)
|
|||||||
pr_warn("The real or virtual hardware system does not provide an STP interface\n");
|
pr_warn("The real or virtual hardware system does not provide an STP interface\n");
|
||||||
free_page((unsigned long) stp_page);
|
free_page((unsigned long) stp_page);
|
||||||
stp_page = NULL;
|
stp_page = NULL;
|
||||||
stp_online = 0;
|
stp_online = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
|
|
||||||
static struct raw3270_fn con3270_fn;
|
static struct raw3270_fn con3270_fn;
|
||||||
|
|
||||||
static bool auto_update = 1;
|
static bool auto_update = true;
|
||||||
module_param(auto_update, bool, 0);
|
module_param(auto_update, bool, 0);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ static LIST_HEAD(raw3270_devices);
|
|||||||
static int raw3270_registered;
|
static int raw3270_registered;
|
||||||
|
|
||||||
/* Module parameters */
|
/* Module parameters */
|
||||||
static bool tubxcorrect = 0;
|
static bool tubxcorrect;
|
||||||
module_param(tubxcorrect, bool, 0);
|
module_param(tubxcorrect, bool, 0);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -201,7 +201,7 @@ static inline bool zcrypt_card_compare(struct zcrypt_card *zc,
|
|||||||
unsigned weight, unsigned pref_weight)
|
unsigned weight, unsigned pref_weight)
|
||||||
{
|
{
|
||||||
if (!pref_zc)
|
if (!pref_zc)
|
||||||
return 0;
|
return false;
|
||||||
weight += atomic_read(&zc->load);
|
weight += atomic_read(&zc->load);
|
||||||
pref_weight += atomic_read(&pref_zc->load);
|
pref_weight += atomic_read(&pref_zc->load);
|
||||||
if (weight == pref_weight)
|
if (weight == pref_weight)
|
||||||
@@ -215,7 +215,7 @@ static inline bool zcrypt_queue_compare(struct zcrypt_queue *zq,
|
|||||||
unsigned weight, unsigned pref_weight)
|
unsigned weight, unsigned pref_weight)
|
||||||
{
|
{
|
||||||
if (!pref_zq)
|
if (!pref_zq)
|
||||||
return 0;
|
return false;
|
||||||
weight += atomic_read(&zq->load);
|
weight += atomic_read(&zq->load);
|
||||||
pref_weight += atomic_read(&pref_zq->load);
|
pref_weight += atomic_read(&pref_zq->load);
|
||||||
if (weight == pref_weight)
|
if (weight == pref_weight)
|
||||||
|
|||||||
@@ -659,7 +659,7 @@ static int virtio_ccw_find_vqs(struct virtio_device *vdev, unsigned nvqs,
|
|||||||
ret = virtio_ccw_register_adapter_ind(vcdev, vqs, nvqs, ccw);
|
ret = virtio_ccw_register_adapter_ind(vcdev, vqs, nvqs, ccw);
|
||||||
if (ret)
|
if (ret)
|
||||||
/* no error, just fall back to legacy interrupts */
|
/* no error, just fall back to legacy interrupts */
|
||||||
vcdev->is_thinint = 0;
|
vcdev->is_thinint = false;
|
||||||
}
|
}
|
||||||
if (!vcdev->is_thinint) {
|
if (!vcdev->is_thinint) {
|
||||||
/* Register queue indicators with host. */
|
/* Register queue indicators with host. */
|
||||||
|
|||||||
Reference in New Issue
Block a user