diff options
author | Mike Krinkin <krinkin.m.u@gmail.com> | 2014-12-02 14:37:45 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-12-02 16:54:43 -0800 |
commit | 68de8d673494578372d6886aefa12feb8be14b51 (patch) | |
tree | 702e7a62ea81756995999c8a9506aa19d5e322ea /drivers/staging/rtl8712 | |
parent | 6c410db7c4305da28107f8b2b650ffe7d010aed1 (diff) | |
download | talos-op-linux-68de8d673494578372d6886aefa12feb8be14b51.tar.gz talos-op-linux-68de8d673494578372d6886aefa12feb8be14b51.zip |
staging: rtl8712: remove unnecessary else after return
Fixes checkpatch warning:
WARNING: else is not generally useful after a break or return
Signed-off-by: Mike Krinkin <krinkin.m.u@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8712')
-rw-r--r-- | drivers/staging/rtl8712/rtl8712_recv.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/staging/rtl8712/rtl8712_recv.c b/drivers/staging/rtl8712/rtl8712_recv.c index 27f38acc2d62..cd8b444b255b 100644 --- a/drivers/staging/rtl8712/rtl8712_recv.c +++ b/drivers/staging/rtl8712/rtl8712_recv.c @@ -522,11 +522,10 @@ int r8712_recv_indicatepkts_in_order(struct _adapter *padapter, if (bforced == true) { if (list_empty(phead)) return true; - else { - prframe = LIST_CONTAINOR(plist, union recv_frame, u); - pattrib = &prframe->u.hdr.attrib; - preorder_ctrl->indicate_seq = pattrib->seq_num; - } + + prframe = LIST_CONTAINOR(plist, union recv_frame, u); + pattrib = &prframe->u.hdr.attrib; + preorder_ctrl->indicate_seq = pattrib->seq_num; } /* Prepare indication list and indication. * Check if there is any packet need indicate. */ |