diff options
Diffstat (limited to 'drivers/isdn')
-rw-r--r-- | drivers/isdn/i4l/isdn_common.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/drivers/isdn/i4l/isdn_common.c b/drivers/isdn/i4l/isdn_common.c index 15632bd2f643..6ed82add6ffa 100644 --- a/drivers/isdn/i4l/isdn_common.c +++ b/drivers/isdn/i4l/isdn_common.c | |||
@@ -399,13 +399,8 @@ isdn_all_eaz(int di, int ch) | |||
399 | #include <linux/isdn/capicmd.h> | 399 | #include <linux/isdn/capicmd.h> |
400 | 400 | ||
401 | static int | 401 | static int |
402 | isdn_capi_rec_hl_msg(capi_msg *cm) { | 402 | isdn_capi_rec_hl_msg(capi_msg *cm) |
403 | 403 | { | |
404 | int di; | ||
405 | int ch; | ||
406 | |||
407 | di = (cm->adr.Controller & 0x7f) -1; | ||
408 | ch = isdn_dc2minor(di, (cm->adr.Controller>>8)& 0x7f); | ||
409 | switch(cm->Command) { | 404 | switch(cm->Command) { |
410 | case CAPI_FACILITY: | 405 | case CAPI_FACILITY: |
411 | /* in the moment only handled in tty */ | 406 | /* in the moment only handled in tty */ |
@@ -1278,7 +1273,6 @@ isdn_ioctl(struct file *file, uint cmd, ulong arg) | |||
1278 | uint minor = iminor(file->f_path.dentry->d_inode); | 1273 | uint minor = iminor(file->f_path.dentry->d_inode); |
1279 | isdn_ctrl c; | 1274 | isdn_ctrl c; |
1280 | int drvidx; | 1275 | int drvidx; |
1281 | int chidx; | ||
1282 | int ret; | 1276 | int ret; |
1283 | int i; | 1277 | int i; |
1284 | char __user *p; | 1278 | char __user *p; |
@@ -1340,7 +1334,6 @@ isdn_ioctl(struct file *file, uint cmd, ulong arg) | |||
1340 | drvidx = isdn_minor2drv(minor); | 1334 | drvidx = isdn_minor2drv(minor); |
1341 | if (drvidx < 0) | 1335 | if (drvidx < 0) |
1342 | return -ENODEV; | 1336 | return -ENODEV; |
1343 | chidx = isdn_minor2chan(minor); | ||
1344 | if (!(dev->drv[drvidx]->flags & DRV_FLAG_RUNNING)) | 1337 | if (!(dev->drv[drvidx]->flags & DRV_FLAG_RUNNING)) |
1345 | return -ENODEV; | 1338 | return -ENODEV; |
1346 | return 0; | 1339 | return 0; |