Skip to contentSkip to conversation

Staging: rtl8192e: remove assignment of function parameter

PATCH In review Matteo Semenzato 2 participants 2 messages Mar 4, 2015 – Mar 5, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: rtl8192e: remove assignment of function parameter

From: Matteo Semenzato <[email protected]>

This patch removes the assignment of a function parameter that has no effect.

---
 drivers/staging/rtl8192e/rtllib_rx.c | 1 -
 1 file changed, 1 deletion(-)
drivers/staging/rtl8192e/rtllib_rx.c +0 -1
index 1664040..c35a5da 100644
@@ -1226,7 +1226,6 @@ static void rtllib_rx_indicate_pkt_legacy(struct rtllib_device *ieee,
 		}
 	}
 	kfree(rxb);
-	rxb = NULL;
 }
 
 static int rtllib_rx_InfraAdhoc(struct rtllib_device *ieee, struct sk_buff *skb,
Signature · 1 line
2.3.1
#1 lore raw
Quoted 4 lines · Matteo Semenzato

From: Matteo Semenzato <[email protected]>

This patch removes the assignment of a function parameter that has no effect.

then by the same logic you can also remove another rxb = NULL in rtllib_rx_InfraAdhoc() function..

regards
sudip

Quoted 26 lines
---
 drivers/staging/rtl8192e/rtllib_rx.c | 1 -
 1 file changed, 1 deletion(-)
drivers/staging/rtl8192e/rtllib_rx.c +0 -1
index 1664040..c35a5da 100644
@@ -1226,7 +1226,6 @@ static void rtllib_rx_indicate_pkt_legacy(struct rtllib_device *ieee,
 		}
 	}
 	kfree(rxb);
-	rxb = NULL;
 }
 
 static int rtllib_rx_InfraAdhoc(struct rtllib_device *ieee, struct sk_buff *skb,
Signature · 7 lines
2.3.1

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