Commit 97c2d79a authored by Muhammad Falak R Wani's avatar Muhammad Falak R Wani Committed by Greg Kroah-Hartman

staging: rtl8712: Remove explicit NULL comparison

Replace the explicit "if (val != NULL)" with if (val).
Signed-off-by: default avatarMuhammad Falak R Wani <falakreyaz@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1e1858cb
...@@ -640,7 +640,7 @@ int r8712_xmitframe_complete(struct _adapter *padapter, ...@@ -640,7 +640,7 @@ int r8712_xmitframe_complete(struct _adapter *padapter,
/* 1st frame dequeued */ /* 1st frame dequeued */
pxmitframe = dequeue_xframe_ex(pxmitpriv, phwxmits, hwentry); pxmitframe = dequeue_xframe_ex(pxmitpriv, phwxmits, hwentry);
/* need to remember the 1st frame */ /* need to remember the 1st frame */
if (pxmitframe != NULL) { if (pxmitframe) {
#ifdef CONFIG_R8712_TX_AGGR #ifdef CONFIG_R8712_TX_AGGR
/* 1. dequeue 2nd frame /* 1. dequeue 2nd frame
...@@ -653,13 +653,13 @@ int r8712_xmitframe_complete(struct _adapter *padapter, ...@@ -653,13 +653,13 @@ int r8712_xmitframe_complete(struct _adapter *padapter,
r8712_free_xmitbuf(pxmitpriv, pxmitbuf); r8712_free_xmitbuf(pxmitpriv, pxmitbuf);
return false; return false;
} }
if (p2ndxmitframe != NULL) if (p2ndxmitframe)
if (p2ndxmitframe->frame_tag != DATA_FRAMETAG) { if (p2ndxmitframe->frame_tag != DATA_FRAMETAG) {
r8712_free_xmitbuf(pxmitpriv, pxmitbuf); r8712_free_xmitbuf(pxmitpriv, pxmitbuf);
return false; return false;
} }
r8712_xmitframe_aggr_1st(pxmitbuf, pxmitframe); r8712_xmitframe_aggr_1st(pxmitbuf, pxmitframe);
if (p2ndxmitframe != NULL) { if (p2ndxmitframe) {
u16 total_length; u16 total_length;
total_length = r8712_xmitframe_aggr_next( total_length = r8712_xmitframe_aggr_next(
...@@ -667,7 +667,7 @@ int r8712_xmitframe_complete(struct _adapter *padapter, ...@@ -667,7 +667,7 @@ int r8712_xmitframe_complete(struct _adapter *padapter,
do { do {
p2ndxmitframe = dequeue_xframe_ex( p2ndxmitframe = dequeue_xframe_ex(
pxmitpriv, phwxmits, hwentry); pxmitpriv, phwxmits, hwentry);
if (p2ndxmitframe != NULL) if (p2ndxmitframe)
total_length = total_length =
r8712_xmitframe_aggr_next( r8712_xmitframe_aggr_next(
pxmitbuf, pxmitbuf,
......
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