Commit 19cd2297 authored by Cristina Opriceana's avatar Cristina Opriceana Committed by Greg Kroah-Hartman
Browse files

Staging: drivers: Bool initializations should use true/false



This patch replaces bool initializations of 1/0 with true/false in order
to increase readability and respect the standards. Warning found by
coccinelle.

Signed-off-by: default avatarCristina Opriceana <cristina.opriceana@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a568dc1f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -544,7 +544,7 @@ static long ft1000_ioctl(struct file *file, unsigned int command,
		if (ft1000dev->fProvComplete == 0)
			return -EACCES;

		ft1000dev->fAppMsgPend = 1;
		ft1000dev->fAppMsgPend = true;

		if (info->CardReady) {

@@ -719,7 +719,7 @@ static long ft1000_ioctl(struct file *file, unsigned int command,
		result = -ENOTTY;
		break;
	}
	ft1000dev->fAppMsgPend = 0;
	ft1000dev->fAppMsgPend = false;
	return result;
}

+1 −1
Original line number Diff line number Diff line
@@ -312,7 +312,7 @@ static int ll_fault0(struct vm_area_struct *vma, struct vm_fault *vmf)
		vio->u.fault.ft_vmpage    = NULL;
		vio->u.fault.fault.ft_vmf = vmf;
		vio->u.fault.fault.ft_flags = 0;
		vio->u.fault.fault.ft_flags_valid = 0;
		vio->u.fault.fault.ft_flags_valid = false;

		result = cl_io_loop(env, io);

+1 −1
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@ void Dot11d_Init(struct ieee80211_device *ieee)
{
	PRT_DOT11D_INFO pDot11dInfo = GET_DOT11D_INFO(ieee);

	pDot11dInfo->bEnabled = 0;
	pDot11dInfo->bEnabled = false;

	pDot11dInfo->State = DOT11D_STATE_NONE;
	pDot11dInfo->CountryIeLen = 0;
+1 −1
Original line number Diff line number Diff line
@@ -943,7 +943,7 @@ int ieee80211_rx(struct ieee80211_device *ieee, struct sk_buff *skb,
		if(net_ratelimit())
		printk("find HTCControl\n");
		hdrlen += 4;
		rx_stats->bContainHTC = 1;
		rx_stats->bContainHTC = true;
	}

	//IEEE80211_DEBUG_DATA(IEEE80211_DL_DATA, skb->data, skb->len);
+2 −2
Original line number Diff line number Diff line
@@ -1371,7 +1371,7 @@ static void ieee80211_associate_complete_wq(struct work_struct *work)
	else if(ieee->is_silent_reset == 1)
	{
		printk("==================>silent reset associate\n");
		ieee->is_silent_reset = 0;
		ieee->is_silent_reset = false;
	}

	if (ieee->data_hard_resume)
@@ -2719,7 +2719,7 @@ void ieee80211_softmac_init(struct ieee80211_device *ieee)
	ieee->sta_edca_param[2] = 0x005E4342;
	ieee->sta_edca_param[3] = 0x002F3262;
	ieee->aggregation = true;
	ieee->enable_rx_imm_BA = 1;
	ieee->enable_rx_imm_BA = true;
	ieee->tx_pending.txb = NULL;

	setup_timer(&ieee->associate_timer, ieee80211_associate_abort_cb,
Loading