From: Cédric Augonnet <Cedric.Augonnet@ens-lyon.fr>
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 <cedric.augonnet@ens-lyon.org>
Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>
diff --git a/drivers/net/wan/hdlc_fr.c b/drivers/net/wan/hdlc_fr.c
index c4ab032..520bb0b 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",
--
| Andy Whitcroft | Re: 2.6.22 -mm merge plans -- pfn_valid_within |
| Linus Torvalds | Linux 2.6.27-rc8 |
| Fernando Luis | [PATCH] affinity is not defined in non-smp kernels - x86_64 |
| James Bottomley | Re: Integration of SCST in the mainstream Linux kernel |
git: | |
| Wink Saville | Using git with Eclipse |
| Andy Parkins | svn:externals using git submodules |
| Jan Wielemaker | [PATCH] git-shell and git-cvsserver |
| Alf Mikula | Migrating a git repository to subversion |
| Leon Dippenaar | New tcp stack attack |
| Richard Stallman | Real men don't attack straw men |
| GVG GVG | ssh_exchange_identification: Connection closed by remote host |
| (private) HKS | Re: sshd_config(5) PermitRootLogin yes |
| Gerrit Renker | [PATCH 0/37] dccp: Feature negotiation - last call for comments |
| Pavel Emelyanov | [PATCH net-2.6.25 9/11][INET] Merge sys.net.ipv4.ip_forward and sys.net.ipv4.conf.... |
| Evgeniy Polyakov | Re: [Bugme-new] [Bug 10556] New: IPVS sync_backup oops |
| Johannes Berg | Re: wireless vs. alignment requirements |
