patch-2.4.4 linux/drivers/net/hamradio/6pack.c

Next file: linux/drivers/net/hamradio/baycom_epp.c
Previous file: linux/drivers/net/hamachi.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.3/linux/drivers/net/hamradio/6pack.c linux/drivers/net/hamradio/6pack.c
@@ -711,10 +711,6 @@
 	/* Do sanity checks on maximum device parameter. */
 	if (sixpack_maxdev < 4)
 		sixpack_maxdev = 4;
-	if (sixpack_maxdev * sizeof(void*) >= KMALLOC_MAXSIZE) {
-	        printk(msg_invparm);
-		return -ENFILE;
-	}
 
 	printk(msg_banner, sixpack_maxdev);
 
@@ -797,8 +793,6 @@
 
 	memcpy(dev->broadcast, ax25_bcast, AX25_ADDR_LEN);	/* Only activated in AX.25 mode */
 	memcpy(dev->dev_addr, ax25_test, AX25_ADDR_LEN);	/*    ""      ""       ""    "" */
-
-	dev_init_buffers(dev);
 
 	/* New-style flags. */
 	dev->flags		= 0;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)