| .. | .. |
|---|
| 951 | 951 | static int test_ans(struct net_device *dev, s32 irqs, s32 irq_mask, s32 msec); |
|---|
| 952 | 952 | static int test_tp(struct net_device *dev, s32 msec); |
|---|
| 953 | 953 | static int EISA_signature(char *name, struct device *device); |
|---|
| 954 | | -static int PCI_signature(char *name, struct de4x5_private *lp); |
|---|
| 954 | +static void PCI_signature(char *name, struct de4x5_private *lp); |
|---|
| 955 | 955 | static void DevicePresent(struct net_device *dev, u_long iobase); |
|---|
| 956 | 956 | static void enet_addr_rst(u_long aprom_addr); |
|---|
| 957 | 957 | static int de4x5_bad_srom(struct de4x5_private *lp); |
|---|
| .. | .. |
|---|
| 3203 | 3203 | case SROM_10BASETF: |
|---|
| 3204 | 3204 | if (!lp->params.fdx) return -1; |
|---|
| 3205 | 3205 | lp->fdx = true; |
|---|
| 3206 | | - /* fall through */ |
|---|
| 3206 | + fallthrough; |
|---|
| 3207 | 3207 | |
|---|
| 3208 | 3208 | case SROM_10BASET: |
|---|
| 3209 | 3209 | if (lp->params.fdx && !lp->fdx) return -1; |
|---|
| .. | .. |
|---|
| 3225 | 3225 | case SROM_100BASETF: |
|---|
| 3226 | 3226 | if (!lp->params.fdx) return -1; |
|---|
| 3227 | 3227 | lp->fdx = true; |
|---|
| 3228 | | - /* fall through */ |
|---|
| 3228 | + fallthrough; |
|---|
| 3229 | 3229 | |
|---|
| 3230 | 3230 | case SROM_100BASET: |
|---|
| 3231 | 3231 | if (lp->params.fdx && !lp->fdx) return -1; |
|---|
| .. | .. |
|---|
| 3239 | 3239 | case SROM_100BASEFF: |
|---|
| 3240 | 3240 | if (!lp->params.fdx) return -1; |
|---|
| 3241 | 3241 | lp->fdx = true; |
|---|
| 3242 | | - /* fall through */ |
|---|
| 3242 | + fallthrough; |
|---|
| 3243 | 3243 | |
|---|
| 3244 | 3244 | case SROM_100BASEF: |
|---|
| 3245 | 3245 | if (lp->params.fdx && !lp->fdx) return -1; |
|---|
| .. | .. |
|---|
| 3902 | 3902 | /* |
|---|
| 3903 | 3903 | ** Look for a particular board name in the PCI configuration space |
|---|
| 3904 | 3904 | */ |
|---|
| 3905 | | -static int |
|---|
| 3905 | +static void |
|---|
| 3906 | 3906 | PCI_signature(char *name, struct de4x5_private *lp) |
|---|
| 3907 | 3907 | { |
|---|
| 3908 | | - int i, status = 0, siglen = ARRAY_SIZE(de4x5_signatures); |
|---|
| 3908 | + int i, siglen = ARRAY_SIZE(de4x5_signatures); |
|---|
| 3909 | 3909 | |
|---|
| 3910 | 3910 | if (lp->chipset == DC21040) { |
|---|
| 3911 | 3911 | strcpy(name, "DE434/5"); |
|---|
| 3912 | | - return status; |
|---|
| 3912 | + return; |
|---|
| 3913 | 3913 | } else { /* Search for a DEC name in the SROM */ |
|---|
| 3914 | 3914 | int tmp = *((char *)&lp->srom + 19) * 3; |
|---|
| 3915 | 3915 | strncpy(name, (char *)&lp->srom + 26 + tmp, 8); |
|---|
| .. | .. |
|---|
| 3935 | 3935 | } else if ((lp->chipset & ~0x00ff) == DC2114x) { |
|---|
| 3936 | 3936 | lp->useSROM = true; |
|---|
| 3937 | 3937 | } |
|---|
| 3938 | | - |
|---|
| 3939 | | - return status; |
|---|
| 3940 | 3938 | } |
|---|
| 3941 | 3939 | |
|---|
| 3942 | 3940 | /* |
|---|