Commit 50a7c114 authored by David S. Miller's avatar David S. Miller

isdn: i4l: isdn_common: Fix set-but-unused variables.

The variable 'ch' is set but unused in isdn_capi_rec_hl_msg().  Just
kill it off.

Similarly for 'chidx' in isdn_ioctl() and 'di' in
isdn_capi_rec_hl_msg().
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8c85290d
...@@ -399,13 +399,8 @@ isdn_all_eaz(int di, int ch) ...@@ -399,13 +399,8 @@ isdn_all_eaz(int di, int ch)
#include <linux/isdn/capicmd.h> #include <linux/isdn/capicmd.h>
static int static int
isdn_capi_rec_hl_msg(capi_msg *cm) { isdn_capi_rec_hl_msg(capi_msg *cm)
{
int di;
int ch;
di = (cm->adr.Controller & 0x7f) -1;
ch = isdn_dc2minor(di, (cm->adr.Controller>>8)& 0x7f);
switch(cm->Command) { switch(cm->Command) {
case CAPI_FACILITY: case CAPI_FACILITY:
/* in the moment only handled in tty */ /* in the moment only handled in tty */
...@@ -1278,7 +1273,6 @@ isdn_ioctl(struct file *file, uint cmd, ulong arg) ...@@ -1278,7 +1273,6 @@ isdn_ioctl(struct file *file, uint cmd, ulong arg)
uint minor = iminor(file->f_path.dentry->d_inode); uint minor = iminor(file->f_path.dentry->d_inode);
isdn_ctrl c; isdn_ctrl c;
int drvidx; int drvidx;
int chidx;
int ret; int ret;
int i; int i;
char __user *p; char __user *p;
...@@ -1340,7 +1334,6 @@ isdn_ioctl(struct file *file, uint cmd, ulong arg) ...@@ -1340,7 +1334,6 @@ isdn_ioctl(struct file *file, uint cmd, ulong arg)
drvidx = isdn_minor2drv(minor); drvidx = isdn_minor2drv(minor);
if (drvidx < 0) if (drvidx < 0)
return -ENODEV; return -ENODEV;
chidx = isdn_minor2chan(minor);
if (!(dev->drv[drvidx]->flags & DRV_FLAG_RUNNING)) if (!(dev->drv[drvidx]->flags & DRV_FLAG_RUNNING))
return -ENODEV; return -ENODEV;
return 0; return 0;
......
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