Commit 40749377 authored by Kai Germaschewski's avatar Kai Germaschewski

ISDN: Fix compiler warnings

The copy_to/from_user fixes left some variables unused, which
the compiler warned about.
parent 3a501293
...@@ -645,7 +645,6 @@ capi_read(struct file *file, char *buf, size_t count, loff_t *ppos) ...@@ -645,7 +645,6 @@ capi_read(struct file *file, char *buf, size_t count, loff_t *ppos)
{ {
struct capidev *cdev = (struct capidev *)file->private_data; struct capidev *cdev = (struct capidev *)file->private_data;
struct sk_buff *skb; struct sk_buff *skb;
int retval;
size_t copied; size_t copied;
if (ppos != &file->f_pos) if (ppos != &file->f_pos)
...@@ -689,7 +688,6 @@ capi_write(struct file *file, const char *buf, size_t count, loff_t *ppos) ...@@ -689,7 +688,6 @@ capi_write(struct file *file, const char *buf, size_t count, loff_t *ppos)
{ {
struct capidev *cdev = (struct capidev *)file->private_data; struct capidev *cdev = (struct capidev *)file->private_data;
struct sk_buff *skb; struct sk_buff *skb;
int retval;
u16 mlen; u16 mlen;
if (ppos != &file->f_pos) if (ppos != &file->f_pos)
......
...@@ -1168,7 +1168,6 @@ static int old_capi_manufacturer(unsigned int cmd, void *data) ...@@ -1168,7 +1168,6 @@ static int old_capi_manufacturer(unsigned int cmd, void *data)
int capi20_manufacturer(unsigned int cmd, void *data) int capi20_manufacturer(unsigned int cmd, void *data)
{ {
struct capi_ctr *card; struct capi_ctr *card;
int retval;
switch (cmd) { switch (cmd) {
#ifdef CONFIG_AVMB1_COMPAT #ifdef CONFIG_AVMB1_COMPAT
......
...@@ -123,7 +123,6 @@ int command(isdn_ctrl *cmd) ...@@ -123,7 +123,6 @@ int command(isdn_ctrl *cmd)
{ {
unsigned long cmdptr; unsigned long cmdptr;
scs_ioctl ioc; scs_ioctl ioc;
int err;
memcpy(&cmdptr, cmd->parm.num, sizeof(unsigned long)); memcpy(&cmdptr, cmd->parm.num, sizeof(unsigned long));
if (copy_from_user(&ioc, (scs_ioctl *)cmdptr, if (copy_from_user(&ioc, (scs_ioctl *)cmdptr,
......
...@@ -43,7 +43,7 @@ int sc_ioctl(int card, scs_ioctl *data) ...@@ -43,7 +43,7 @@ int sc_ioctl(int card, scs_ioctl *data)
{ {
RspMessage rcvmsg; RspMessage rcvmsg;
char srec[SCIOC_SRECSIZE]; char srec[SCIOC_SRECSIZE];
int status, err; int status;
pr_debug("%s: SCIOLOAD: ioctl received\n", adapter[card]->devicename); pr_debug("%s: SCIOLOAD: ioctl received\n", adapter[card]->devicename);
if(adapter[card]->EngineUp) { if(adapter[card]->EngineUp) {
...@@ -89,7 +89,7 @@ int sc_ioctl(int card, scs_ioctl *data) ...@@ -89,7 +89,7 @@ int sc_ioctl(int card, scs_ioctl *data)
{ {
RspMessage rcvmsg; RspMessage rcvmsg;
char switchtype; char switchtype;
int status, err; int status;
pr_debug("%s: SCIOSETSWITCH: ioctl received\n", adapter[card]->devicename); pr_debug("%s: SCIOSETSWITCH: ioctl received\n", adapter[card]->devicename);
...@@ -119,7 +119,7 @@ int sc_ioctl(int card, scs_ioctl *data) ...@@ -119,7 +119,7 @@ int sc_ioctl(int card, scs_ioctl *data)
{ {
RspMessage rcvmsg; RspMessage rcvmsg;
char switchtype; char switchtype;
int status, err; int status;
pr_debug("%s: SCIOGETSWITCH: ioctl received\n", adapter[card]->devicename); pr_debug("%s: SCIOGETSWITCH: ioctl received\n", adapter[card]->devicename);
...@@ -153,7 +153,7 @@ int sc_ioctl(int card, scs_ioctl *data) ...@@ -153,7 +153,7 @@ int sc_ioctl(int card, scs_ioctl *data)
{ {
RspMessage rcvmsg; RspMessage rcvmsg;
char spid[SCIOC_SPIDSIZE]; char spid[SCIOC_SPIDSIZE];
int status, err; int status;
pr_debug("%s: SCIOGETSPID: ioctl received\n", adapter[card]->devicename); pr_debug("%s: SCIOGETSPID: ioctl received\n", adapter[card]->devicename);
...@@ -185,7 +185,7 @@ int sc_ioctl(int card, scs_ioctl *data) ...@@ -185,7 +185,7 @@ int sc_ioctl(int card, scs_ioctl *data)
{ {
RspMessage rcvmsg; RspMessage rcvmsg;
char spid[SCIOC_SPIDSIZE]; char spid[SCIOC_SPIDSIZE];
int status, err; int status;
pr_debug("%s: DCBIOSETSPID: ioctl received\n", adapter[card]->devicename); pr_debug("%s: DCBIOSETSPID: ioctl received\n", adapter[card]->devicename);
...@@ -216,7 +216,7 @@ int sc_ioctl(int card, scs_ioctl *data) ...@@ -216,7 +216,7 @@ int sc_ioctl(int card, scs_ioctl *data)
{ {
RspMessage rcvmsg; RspMessage rcvmsg;
char dn[SCIOC_DNSIZE]; char dn[SCIOC_DNSIZE];
int status, err; int status;
pr_debug("%s: SCIOGETDN: ioctl received\n", adapter[card]->devicename); pr_debug("%s: SCIOGETDN: ioctl received\n", adapter[card]->devicename);
...@@ -249,7 +249,7 @@ int sc_ioctl(int card, scs_ioctl *data) ...@@ -249,7 +249,7 @@ int sc_ioctl(int card, scs_ioctl *data)
{ {
RspMessage rcvmsg; RspMessage rcvmsg;
char dn[SCIOC_DNSIZE]; char dn[SCIOC_DNSIZE];
int status, err; int status;
pr_debug("%s: SCIOSETDN: ioctl received\n", adapter[card]->devicename); pr_debug("%s: SCIOSETDN: ioctl received\n", adapter[card]->devicename);
...@@ -287,7 +287,6 @@ int sc_ioctl(int card, scs_ioctl *data) ...@@ -287,7 +287,6 @@ int sc_ioctl(int card, scs_ioctl *data)
case SCIOCSTAT: case SCIOCSTAT:
{ {
boardInfo bi; boardInfo bi;
int err;
pr_debug("%s: SCIOSTAT: ioctl received\n", adapter[card]->devicename); pr_debug("%s: SCIOSTAT: ioctl received\n", adapter[card]->devicename);
GetStatus(card, &bi); GetStatus(card, &bi);
...@@ -303,7 +302,7 @@ int sc_ioctl(int card, scs_ioctl *data) ...@@ -303,7 +302,7 @@ int sc_ioctl(int card, scs_ioctl *data)
{ {
RspMessage rcvmsg; RspMessage rcvmsg;
char speed; char speed;
int status, err; int status;
pr_debug("%s: SCIOGETSPEED: ioctl received\n", adapter[card]->devicename); pr_debug("%s: SCIOGETSPEED: ioctl received\n", adapter[card]->devicename);
......
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