Commit 54d26813 authored by Chas Williams's avatar Chas Williams Committed by Stephen Hemminger

[ATM]: Change ifdef in lanai_ioctl

parent 6e61d0d3
...@@ -2432,11 +2432,11 @@ static int lanai_open(struct atm_vcc *atmvcc) ...@@ -2432,11 +2432,11 @@ static int lanai_open(struct atm_vcc *atmvcc)
return result; return result;
} }
#if 0
/* ioctl operations for card */ /* ioctl operations for card */
/* NOTE: these are all DEBUGGING ONLY currently */ /* NOTE: these are all DEBUGGING ONLY currently */
static int lanai_ioctl(struct atm_dev *atmdev, unsigned int cmd, void *arg) static int lanai_ioctl(struct atm_dev *atmdev, unsigned int cmd, void *arg)
{ {
#if 0
int result = 0; int result = 0;
struct lanai_dev *lanai = (struct lanai_dev *) atmdev->dev_data; struct lanai_dev *lanai = (struct lanai_dev *) atmdev->dev_data;
switch(cmd) { switch(cmd) {
...@@ -2514,11 +2514,10 @@ static int lanai_ioctl(struct atm_dev *atmdev, unsigned int cmd, void *arg) ...@@ -2514,11 +2514,10 @@ static int lanai_ioctl(struct atm_dev *atmdev, unsigned int cmd, void *arg)
result = -ENOIOCTLCMD; result = -ENOIOCTLCMD;
} }
return result; return result;
}
#else /* !0 */ #else /* !0 */
(void) atmdev; (void) cmd; (void) arg; /* no compiler warnings */ #define lanai_ioctl NULL
return -ENOIOCTLCMD;
#endif /* 0 */ #endif /* 0 */
}
static int lanai_send(struct atm_vcc *atmvcc, struct sk_buff *skb) static int lanai_send(struct atm_vcc *atmvcc, struct sk_buff *skb)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment