[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20200615155131.GA4563@sevic69>
Date: Mon, 15 Jun 2020 09:51:31 -0600
From: Sebastian Arriola <sebdeveloper6952@...il.com>
To: gregkh@...uxfoundation.org
Cc: linux-kernel@...r.kernel.org, Larry.Finger@...inger.net,
florian.c.schilhabel@...glemail.com
Subject: [PATCH] staging: rtl8712: Remove unnecesary else after return
statement.
This patch fixes the checkpatch.pl warning:
WARNING: else is not generally useful after a break or return
490: FILE: drivers/staging/rtl8712/rtl8712_recv.c:490:
return false;
else
Signed-off-by: Sebastian Arriola <sebdeveloper6952@...il.com>
---
drivers/staging/rtl8712/rtl8712_recv.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/staging/rtl8712/rtl8712_recv.c b/drivers/staging/rtl8712/rtl8712_recv.c
index 116773943a2e..4cd391a7193a 100644
--- a/drivers/staging/rtl8712/rtl8712_recv.c
+++ b/drivers/staging/rtl8712/rtl8712_recv.c
@@ -487,8 +487,7 @@ static int enqueue_reorder_recvframe(struct recv_reorder_ctrl *preorder_ctrl,
plist = plist->next;
else if (SN_EQUAL(pnextattrib->seq_num, pattrib->seq_num))
return false;
- else
- break;
+ break;
}
list_del_init(&(prframe->u.hdr.list));
list_add_tail(&(prframe->u.hdr.list), plist);
--
2.25.1
Powered by blists - more mailing lists