mirror-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
Kconfig net: ixp4xx_hss: Check features using syscon 2022-02-12 18:20:03 +01:00
Makefile
c101.c
cosa.c net: cosa: fix error check return value of register_chrdev() 2022-04-22 10:20:43 +01:00
cosa.h
farsync.c
farsync.h
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
hd64570.h
hd64572.c
hd64572.h
hdlc.c
hdlc_cisco.c
hdlc_fr.c net: hldc_fr: use dev_addr_set() 2021-10-22 10:16:18 -07:00
hdlc_ppp.c
hdlc_raw.c
hdlc_raw_eth.c
hdlc_x25.c
hostess_sv11.c
ixp4xx_hss.c 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
n2.c
pc300too.c
pci200syn.c
sealevel.c
slic_ds26522.c spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
slic_ds26522.h
wanxl.c
wanxl.h
wanxlfw.S
wanxlfw.inc_shipped
z85230.c
z85230.h