Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1202554

[PATCH 5/7] staging: rtl8188eu: remove exit label

From Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Newsgroups linux.kernel
Subject [PATCH 5/7] staging: rtl8188eu: remove exit label
Date 2015-08-07 12:40 +0200
Message-ID <pUNeb-5gC-43@gated-at.bofh.it> (permalink)
References <pUNea-5gC-31@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


An exit label which does nothing except return, is not worth having. So
remove it.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
---
 drivers/staging/rtl8188eu/core/rtw_recv.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/drivers/staging/rtl8188eu/core/rtw_recv.c b/drivers/staging/rtl8188eu/core/rtw_recv.c
index b347a81..c011dc8 100644
--- a/drivers/staging/rtl8188eu/core/rtw_recv.c
+++ b/drivers/staging/rtl8188eu/core/rtw_recv.c
@@ -74,10 +74,8 @@ int _rtw_init_recv_priv(struct recv_priv *precvpriv, struct adapter *padapter)
 
 	precvpriv->pallocated_frame_buf = vzalloc(NR_RECVFRAME * sizeof(struct recv_frame) + RXFRAME_ALIGN_SZ);
 
-	if (precvpriv->pallocated_frame_buf == NULL) {
-		res = _FAIL;
-		goto exit;
-	}
+	if (!precvpriv->pallocated_frame_buf)
+		return _FAIL;
 
 	precvpriv->precv_frame_buf = (u8 *)N_BYTE_ALIGMENT((size_t)(precvpriv->pallocated_frame_buf), RXFRAME_ALIGN_SZ);
 
@@ -107,8 +105,6 @@ int _rtw_init_recv_priv(struct recv_priv *precvpriv, struct adapter *padapter)
 	precvpriv->signal_stat_sampling_interval = 1000; /* ms */
 
 	rtw_set_signal_stat_timer(precvpriv);
-exit:
-
 
 	return res;
 }
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 1/7] staging: rtl8188eu: remove unused argument Sudip Mukherjee <sudipm.mukherjee@gmail.com> - 2015-08-07 12:40 +0200
  [PATCH 6/7] staging: rtl8188eu: remove unused function Sudip Mukherjee <sudipm.mukherjee@gmail.com> - 2015-08-07 12:40 +0200
  [PATCH 5/7] staging: rtl8188eu: remove exit label Sudip Mukherjee <sudipm.mukherjee@gmail.com> - 2015-08-07 12:40 +0200
  [PATCH 2/7] staging: rtl8188eu: make function void Sudip Mukherjee <sudipm.mukherjee@gmail.com> - 2015-08-07 12:40 +0200
  [PATCH 7/7] staging: rtl8188eu: remove multiple blank line Sudip Mukherjee <sudipm.mukherjee@gmail.com> - 2015-08-07 12:40 +0200
  [PATCH 4/7] staging: rtl8188eu: remove unused define Sudip Mukherjee <sudipm.mukherjee@gmail.com> - 2015-08-07 12:40 +0200

csiph-web