Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChas Williams <chas@cmf.nrl.navy.mil>2003-10-16 11:10:54 -0700
committerStephen Hemminger <shemminger@osdl.org>2003-10-16 11:10:54 -0700
commit54d26813da1996348e864b6e9d56f4006bf1cf18 (patch)
treefd20b3cdc96dc1311b61e6fd97e110e308f0481a
parent6e61d0d3fdf7b3a3f3cca88085b276174785b0f8 (diff)
[ATM]: Change ifdef in lanai_ioctl
-rw-r--r--drivers/atm/lanai.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/atm/lanai.c b/drivers/atm/lanai.c
index cb99c67b5aba..402e78a5ac97 100644
--- a/drivers/atm/lanai.c
+++ b/drivers/atm/lanai.c
@@ -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)
{