This patch remove true and false from boolean tests.
Signed-off-by: Abdul Hussain <habdul@visteon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
}
}
- if (ofdm_rate == true)
+ if (ofdm_rate)
max_min = 4;
else
max_min = 5;
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");
return -ENOMEM;
}
return NULL;
context = priv->tx_context[ii];
- if (context->in_use == false) {
+ if (!context->in_use) {
context->in_use = true;
memset(context->data, 0,
MAX_TOTAL_SIZE_WITH_ALL_HEADERS);
{
int status = STATUS_FAILURE;
- if (priv->int_buf.in_use == true)
+ if (priv->int_buf.in_use)
return STATUS_FAILURE;
priv->int_buf.in_use = true;