From be114f8fae0ef5a0290a4f0f68d014dc57e4d6ce Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Thu, 5 Sep 2013 17:23:55 -0500 Subject: [PATCH] rtl8188eu: Fix smatch warning in os_dep/recv_linux.c Smatch shows the following warning: CHECK /home/finger/rtl8188eu/os_dep/recv_linux.c /home/finger/rtl8188eu/os_dep/recv_linux.c:236 rtw_recv_indicatepkt() warn: variable dereferenced before check 'precv_frame' (see line 142) Signed-off-by: Larry Finger --- os_dep/recv_linux.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/os_dep/recv_linux.c b/os_dep/recv_linux.c index 4367c2d..619aed0 100644 --- a/os_dep/recv_linux.c +++ b/os_dep/recv_linux.c @@ -232,9 +232,8 @@ _func_exit_; _recv_indicatepkt_drop: - /* enqueue back to free_recv_queue */ - if (precv_frame) - rtw_free_recvframe(precv_frame, pfree_recv_queue); + /* enqueue back to free_recv_queue */ + rtw_free_recvframe(precv_frame, pfree_recv_queue); _func_exit_; return _FAIL;