patch-2.3.29 linux/drivers/net/hamradio/scc.c

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

diff -u --recursive --new-file v2.3.28/linux/drivers/net/hamradio/scc.c linux/drivers/net/hamradio/scc.c
@@ -1571,7 +1571,7 @@
 	unsigned char *buf;
 	struct net_device *dev;
 
-	if (dev_get(name) != NULL)
+	if (dev_get(name))
 	{
 		printk(KERN_INFO "Z8530drv: device %s already exists.\n", name);
 		return -EEXIST;
@@ -2068,7 +2068,7 @@
 /* ******************************************************************** */
 
 
-static int scc_net_get_info(char *buffer, char **start, off_t offset, int length, int dummy)
+static int scc_net_get_info(char *buffer, char **start, off_t offset, int length)
 {
 	struct scc_channel *scc;
 	struct scc_kiss *kiss;

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