summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8712/rtl8712_xmit.c
diff options
context:
space:
mode:
authorLuis de Bethencourt2015-10-19 19:14:29 +0200
committerGreg Kroah-Hartman2015-10-25 03:26:59 +0100
commit1ca96884b12dd2d57e0339d9f4a29e4888edc0e2 (patch)
tree02a93808d2aac299ecf9b69a8182699be5f2af40 /drivers/staging/rtl8712/rtl8712_xmit.c
parentstaging: ion: Remove explicit NULL comparison (diff)
downloadkernel-qcow2-linux-1ca96884b12dd2d57e0339d9f4a29e4888edc0e2.tar.gz
kernel-qcow2-linux-1ca96884b12dd2d57e0339d9f4a29e4888edc0e2.tar.xz
kernel-qcow2-linux-1ca96884b12dd2d57e0339d9f4a29e4888edc0e2.zip
staging: rtl8712: Remove boolean comparisons
Boolean tests do not need explicit comparison to true or false. Signed-off-by: Luis de Bethencourt <luisbg@osg.samsung.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8712/rtl8712_xmit.c')
-rw-r--r--drivers/staging/rtl8712/rtl8712_xmit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/rtl8712/rtl8712_xmit.c b/drivers/staging/rtl8712/rtl8712_xmit.c
index 27b121398027..296591902e19 100644
--- a/drivers/staging/rtl8712/rtl8712_xmit.c
+++ b/drivers/staging/rtl8712/rtl8712_xmit.c
@@ -168,7 +168,7 @@ static struct xmit_frame *dequeue_one_xmitframe(struct xmit_priv *pxmitpriv,
xmitframe_phead = &pframe_queue->queue;
xmitframe_plist = xmitframe_phead->next;
- if ((end_of_queue_search(xmitframe_phead, xmitframe_plist)) == false) {
+ if (!end_of_queue_search(xmitframe_phead, xmitframe_plist)) {
pxmitframe = LIST_CONTAINOR(xmitframe_plist,
struct xmit_frame, list);
list_del_init(&pxmitframe->list);
@@ -208,7 +208,7 @@ static struct xmit_frame *dequeue_xframe_ex(struct xmit_priv *pxmitpriv,
phwxmit = phwxmit_i + inx[i];
sta_phead = &phwxmit->sta_queue->queue;
sta_plist = sta_phead->next;
- while ((end_of_queue_search(sta_phead, sta_plist)) == false) {
+ while (!end_of_queue_search(sta_phead, sta_plist)) {
ptxservq = LIST_CONTAINOR(sta_plist, struct tx_servq,
tx_pending);
pframe_queue = &ptxservq->sta_pending;