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