linux/drivers/net/wan
Lv Ruyi d48fea8401 net: cosa: fix error check return value of register_chrdev()
If major equal 0, register_chrdev() returns error code when it fails.
This function dynamically allocate a major and return its number on
success, so we should use "< 0" to check it instead of "!".

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Lv Ruyi <lv.ruyi@zte.com.cn>
Acked-By: Jan "Yenya" Kasprzak <kas@fi.muni.cz>
Signed-off-by: David S. Miller <davem@davemloft.net>
2022-04-22 10:20:43 +01:00
..
lmc net: wan: lmc: use time_is_before_jiffies() instead of open coding it 2022-02-28 13:21:31 +00:00
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
c101.c net: split out ndo_siowandev ioctl 2021-07-27 20:11:45 +01:00
cosa.c net: cosa: fix error check return value of register_chrdev() 2022-04-22 10:20:43 +01:00
cosa.h
farsync.c net: split out ndo_siowandev ioctl 2021-07-27 20:11:45 +01:00
farsync.h WAN: Replace zero-length array with flexible-array member 2020-02-27 12:06:55 -08:00
fsl_ucc_hdlc.c net/wan/fsl_ucc_hdlc: fix sparse warnings 2021-11-15 14:24:41 +00:00
fsl_ucc_hdlc.h
hd64570.c net: hd64570: add some required spaces 2021-06-07 12:25:21 -07:00
hd64570.h
hd64572.c net: wan: add necessary () to macro argument 2021-05-21 13:26:41 -07:00
hd64572.h
hdlc_cisco.c net: split out ndo_siowandev ioctl 2021-07-27 20:11:45 +01:00
hdlc_fr.c net: hldc_fr: use dev_addr_set() 2021-10-22 10:16:18 -07:00
hdlc_ppp.c net: split out ndo_siowandev ioctl 2021-07-27 20:11:45 +01:00
hdlc_raw_eth.c net: split out ndo_siowandev ioctl 2021-07-27 20:11:45 +01:00
hdlc_raw.c net: split out ndo_siowandev ioctl 2021-07-27 20:11:45 +01:00
hdlc_x25.c net: split out ndo_siowandev ioctl 2021-07-27 20:11:45 +01:00
hdlc.c net: split out ndo_siowandev ioctl 2021-07-27 20:11:45 +01:00
hostess_sv11.c wan: hostess_sv11: use module_init/module_exit helpers 2021-08-03 13:05:26 +01:00
ixp4xx_hss.c net: ixp4xx_hss: Check features using syscon 2022-02-12 18:20:03 +01:00
Kconfig net: ixp4xx_hss: Check features using syscon 2022-02-12 18:20:03 +01:00
lapbether.c net: use dev_addr_set() 2021-10-09 11:55:01 +01:00
Makefile net: wan: wanxl: define CROSS_COMPILE_M68K 2021-09-16 14:08:04 +01:00
n2.c net: split out ndo_siowandev ioctl 2021-07-27 20:11:45 +01:00
pc300too.c net: split out ndo_siowandev ioctl 2021-07-27 20:11:45 +01:00
pci200syn.c net: split out ndo_siowandev ioctl 2021-07-27 20:11:45 +01:00
sealevel.c net: split out ndo_siowandev ioctl 2021-07-27 20:11:45 +01:00
slic_ds26522.c spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
slic_ds26522.h
wanxl.c net: split out ndo_siowandev ioctl 2021-07-27 20:11:45 +01:00
wanxl.h
wanxlfw.inc_shipped
wanxlfw.S
z85230.c net: z85230: remove unnecessary out of memory message 2021-06-15 10:55:18 -07:00
z85230.h net: wan: z85230: drop unused async state 2021-04-07 14:56:01 -07:00