]> git.hungrycats.org Git - linux/commitdiff
[ATM]: Change ifdef in lanai_ioctl
authorChas Williams <chas@cmf.nrl.navy.mil>
Thu, 16 Oct 2003 18:10:54 +0000 (11:10 -0700)
committerStephen Hemminger <shemminger@osdl.org>
Thu, 16 Oct 2003 18:10:54 +0000 (11:10 -0700)
drivers/atm/lanai.c

index cb99c67b5abafc88704f868ebe88f5b49988df9f..402e78a5ac97fc50d5f47e92b2c2ea0d24faadd3 100644 (file)
@@ -2432,11 +2432,11 @@ static int lanai_open(struct atm_vcc *atmvcc)
        return result;
 }
 
+#if 0
 /* ioctl operations for card */
 /* 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) {
@@ -2514,11 +2514,10 @@ static int lanai_ioctl(struct atm_dev *atmdev, unsigned int cmd, void *arg)
                        result = -ENOIOCTLCMD;
        }
        return result;
+}
 #else /* !0 */
-       (void) atmdev; (void) cmd; (void) arg;  /* no compiler warnings */
-       return -ENOIOCTLCMD;
+#define lanai_ioctl NULL
 #endif /* 0 */
-}
 
 static int lanai_send(struct atm_vcc *atmvcc, struct sk_buff *skb)
 {