DORMANTno replies

[PATCH][ATM]: [lanai] ioctl only meant for debugging (from mitch@sfgoth.com)

From: chas williams <hidden>
Date: 2003-09-22 17:03:57

pleae apply to 2.4. --thanks

# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
#	           ChangeSet	1.1115  -> 1.1116 
#	 drivers/atm/lanai.c	1.4     -> 1.5    
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 03/09/22	chas@relax.cmf.nrl.navy.mil	1.1116
# [ATM]: [lanai] ioctl only meant for debugging (from mitch@sfgoth.com)
# --------------------------------------------
#
diff -Nru a/drivers/atm/lanai.c b/drivers/atm/lanai.c
--- a/drivers/atm/lanai.c	Mon Sep 22 13:01:23 2003
+++ b/drivers/atm/lanai.c	Mon Sep 22 13:01:23 2003
@@ -2574,6 +2574,7 @@
 /* NOTE: these are all DEBUGGING ONLY currently */
 static int lanai_ioctl(struct atm_dev *atmdev, unsigned int cmd, void *arg)
 {
+#if 0
 	int result = 0;
 	struct lanai_dev *lanai = (struct lanai_dev *) atmdev->dev_data;
 	switch(cmd) {
@@ -2653,6 +2654,10 @@
 			result = -EINVAL;
 	}
 	return result;
+#else /* !0 */
+	(void) atmdev; (void) cmd; (void) arg;  /* no compiler warnings */
+	return -ENOIOCTLCMD;
+#endif /* 0 */
 }
 
 static int lanai_send(struct atm_vcc *atmvcc, struct sk_buff *skb)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help