From: Cédric Augonnet Date: Sun, 20 Apr 2008 17:15:51 +0000 (+0200) Subject: Removing dead code in drivers/net/wan/hdlc_fr.c X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7cda1edf029370d396fb610f7e41fad9a7123164;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git Removing dead code in drivers/net/wan/hdlc_fr.c The local variable "prefix" is never used anymore, and the content of this string appears a bit later, directly in a call to "alloc_netdev" after doing exactly the same if/else test. So there seems to be no point keeping those 4 lines anymore. Signed-off-by: Cédric Augonnet Signed-off-by: Krzysztof Hałasa Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/wan/hdlc_fr.c b/drivers/net/wan/hdlc_fr.c index c4ab0326f911..520bb0b1a9a2 100644 --- a/drivers/net/wan/hdlc_fr.c +++ b/drivers/net/wan/hdlc_fr.c @@ -1090,10 +1090,6 @@ static int fr_add_pvc(struct net_device *frad, unsigned int dlci, int type) pvc_device *pvc = NULL; struct net_device *dev; int result, used; - char * prefix = "pvc%d"; - - if (type == ARPHRD_ETHER) - prefix = "pvceth%d"; if ((pvc = add_pvc(frad, dlci)) == NULL) { printk(KERN_WARNING "%s: Memory squeeze on fr_add_pvc()\n",