Skip to contentSkip to conversation

staging: ks7010: Remove initialisation in

PATCH Superseded Nishka Dasgupta 2 participants 2 messages May 24, 2019 Staging

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 staging: ks7010: Remove initialisation in

As the initial value of the return variable result is never used, it can be removed.
Issue found with Coccinelle.

---
Changes in v2:
- Clarified subject line

 drivers/staging/ks7010/ks7010_sdio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/ks7010/ks7010_sdio.c +1 -1
index 74551eb717fc..4b379542ecd5 100644
@@ -380,7 +380,7 @@ int ks_wlan_hw_tx(struct ks_wlan_private *priv, void *p, unsigned long size,
 					   struct sk_buff *skb),
 		  struct sk_buff *skb)
 {
-	int result = 0;
+	int result;
 	struct hostif_hdr *hdr;
 
 	hdr = (struct hostif_hdr *)p;
Signature · 1 line
2.19.1
maintainer
#1 lore raw
Quoted 8 lines · Nishka Dasgupta

As the initial value of the return variable result is never used, it can be removed.
Issue found with Coccinelle.

---
Changes in v2:
- Clarified subject line

Your subject line is an incomplete sentence :(