.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* drivers/atm/zatm.c - ZeitNet ZN122x device driver */ |
---|
2 | 3 | |
---|
3 | 4 | /* Written 1995-2000 by Werner Almesberger, EPFL LRC/ICA */ |
---|
.. | .. |
---|
939 | 940 | vcc->qos.txtp.max_pcr >= ATM_OC3_PCR); |
---|
940 | 941 | if (unlimited && zatm_dev->ubr != -1) zatm_vcc->shaper = zatm_dev->ubr; |
---|
941 | 942 | else { |
---|
942 | | - int uninitialized_var(pcr); |
---|
| 943 | + int pcr; |
---|
943 | 944 | |
---|
944 | 945 | if (unlimited) vcc->qos.txtp.max_sdu = ATM_MAX_AAL5_PDU; |
---|
945 | 946 | if ((zatm_vcc->shaper = alloc_shaper(vcc->dev,&pcr, |
---|
.. | .. |
---|
1446 | 1447 | switch (cmd) { |
---|
1447 | 1448 | case ZATM_GETPOOLZ: |
---|
1448 | 1449 | if (!capable(CAP_NET_ADMIN)) return -EPERM; |
---|
1449 | | - /* fall through */ |
---|
| 1450 | + fallthrough; |
---|
1450 | 1451 | case ZATM_GETPOOL: |
---|
1451 | 1452 | { |
---|
1452 | 1453 | struct zatm_pool_info info; |
---|
.. | .. |
---|
1514 | 1515 | } |
---|
1515 | 1516 | } |
---|
1516 | 1517 | |
---|
1517 | | - |
---|
1518 | | -static int zatm_getsockopt(struct atm_vcc *vcc,int level,int optname, |
---|
1519 | | - void __user *optval,int optlen) |
---|
1520 | | -{ |
---|
1521 | | - return -EINVAL; |
---|
1522 | | -} |
---|
1523 | | - |
---|
1524 | | - |
---|
1525 | | -static int zatm_setsockopt(struct atm_vcc *vcc,int level,int optname, |
---|
1526 | | - void __user *optval,unsigned int optlen) |
---|
1527 | | -{ |
---|
1528 | | - return -EINVAL; |
---|
1529 | | -} |
---|
1530 | | - |
---|
1531 | 1518 | static int zatm_send(struct atm_vcc *vcc,struct sk_buff *skb) |
---|
1532 | 1519 | { |
---|
1533 | 1520 | int error; |
---|
.. | .. |
---|
1581 | 1568 | .open = zatm_open, |
---|
1582 | 1569 | .close = zatm_close, |
---|
1583 | 1570 | .ioctl = zatm_ioctl, |
---|
1584 | | - .getsockopt = zatm_getsockopt, |
---|
1585 | | - .setsockopt = zatm_setsockopt, |
---|
1586 | 1571 | .send = zatm_send, |
---|
1587 | 1572 | .phy_put = zatm_phy_put, |
---|
1588 | 1573 | .phy_get = zatm_phy_get, |
---|