Commit 5699c0f4 authored by Abdul Hussain's avatar Abdul Hussain Committed by Greg Kroah-Hartman

staging: vt6656: Boolean tests don't need comparisons.

This patch remove true and false from boolean tests.
Signed-off-by: default avatarAbdul Hussain <habdul@visteon.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3bfef650
...@@ -389,7 +389,7 @@ void vnt_update_ifs(struct vnt_private *priv) ...@@ -389,7 +389,7 @@ void vnt_update_ifs(struct vnt_private *priv)
} }
} }
if (ofdm_rate == true) if (ofdm_rate)
max_min = 4; max_min = 4;
else else
max_min = 5; max_min = 5;
......
...@@ -522,7 +522,7 @@ static int vnt_start(struct ieee80211_hw *hw) ...@@ -522,7 +522,7 @@ static int vnt_start(struct ieee80211_hw *hw)
priv->rx_buf_sz = MAX_TOTAL_SIZE_WITH_ALL_HEADERS; priv->rx_buf_sz = MAX_TOTAL_SIZE_WITH_ALL_HEADERS;
if (vnt_alloc_bufs(priv) == false) { if (!vnt_alloc_bufs(priv)) {
dev_dbg(&priv->usb->dev, "vnt_alloc_bufs fail...\n"); dev_dbg(&priv->usb->dev, "vnt_alloc_bufs fail...\n");
return -ENOMEM; return -ENOMEM;
} }
......
...@@ -87,7 +87,7 @@ static struct vnt_usb_send_context ...@@ -87,7 +87,7 @@ static struct vnt_usb_send_context
return NULL; return NULL;
context = priv->tx_context[ii]; context = priv->tx_context[ii];
if (context->in_use == false) { if (!context->in_use) {
context->in_use = true; context->in_use = true;
memset(context->data, 0, memset(context->data, 0,
MAX_TOTAL_SIZE_WITH_ALL_HEADERS); MAX_TOTAL_SIZE_WITH_ALL_HEADERS);
......
...@@ -141,7 +141,7 @@ int vnt_start_interrupt_urb(struct vnt_private *priv) ...@@ -141,7 +141,7 @@ int vnt_start_interrupt_urb(struct vnt_private *priv)
{ {
int status = STATUS_FAILURE; int status = STATUS_FAILURE;
if (priv->int_buf.in_use == true) if (priv->int_buf.in_use)
return STATUS_FAILURE; return STATUS_FAILURE;
priv->int_buf.in_use = true; priv->int_buf.in_use = true;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment