Skip to contentSkip to conversation

Staging: rtl8712: Avoid multiple assignments.

PATCH New Sandhya Bankar 1 participant 1 message Mar 6, 2016 Staging

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 Staging: rtl8712: Avoid multiple assignments.

Avoid multiple assignments.This isssue is found by checkpatch.pl script.

---
Changes in v2:
* No change.
*Compile this patch to check nothing is broken.

 drivers/staging/rtl8712/recv_linux.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/staging/rtl8712/recv_linux.c +2 -1
index 2f5460d..28a6360 100644
@@ -44,7 +44,8 @@
 int r8712_os_recv_resource_alloc(struct _adapter *padapter,
 				 union recv_frame *precvframe)
 {
-	precvframe->u.hdr.pkt_newalloc = precvframe->u.hdr.pkt = NULL;
+	precvframe->u.hdr.pkt_newalloc = NULL;
+	precvframe->u.hdr.pkt = NULL;
 	return _SUCCESS;
 }
 
Signature · 1 line
1.8.3.4