netdev
[Top] [All Lists]

[PATCH][ATM]: [lanai] ioctl only meant for debugging (from mitch@xxxxxxx

To: davem@xxxxxxxxxx
Subject: [PATCH][ATM]: [lanai] ioctl only meant for debugging (from mitch@xxxxxxxxxx)
From: chas williams <chas@xxxxxxxxxxxxxxxx>
Date: Mon, 22 Sep 2003 13:03:57 -0400
Cc: netdev@xxxxxxxxxxx
Reply-to: chas3@xxxxxxxxxxxxxxxxxxxxx
Sender: netdev-bounce@xxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxx     1.1116
# [ATM]: [lanai] ioctl only meant for debugging (from mitch@xxxxxxxxxx)
# --------------------------------------------
#
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)

<Prev in Thread] Current Thread [Next in Thread>