u-boot/drivers/net
Marek Vasut e3b54cda68 net: ks8851: Replace malloc()+memset() with calloc()
Replace combination of malloc()+memset() with calloc() as the behavior
is exactly the same and the amount of code is reduced. Moreover, remove
printf() in the fail path, as it is useless, and return proper -ENOMEM
return code.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Eugen Hristev <eugen.hristev@microchip.com>
Cc: Joe Hershberger <joe.hershberger@ni.com>
2020-05-22 19:46:45 +02:00
..
fm Merge https://gitlab.denx.de/u-boot/custodians/u-boot-fsl-qoriq 2020-05-20 08:46:56 -04:00
fsl-mc Merge https://gitlab.denx.de/u-boot/custodians/u-boot-fsl-qoriq 2020-05-20 08:46:56 -04:00
ldpaa_eth common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
mscc_eswitch common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
pfe_eth common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
phy common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
ti common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
8390.h drivers/net : move net drivers to drivers/net 2007-11-25 18:35:17 +01:00
ag7xxx.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
altera_tse.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
altera_tse.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
armada100_fec.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
armada100_fec.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
at91_emac.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
ax88180.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
ax88180.h AX88180: use standard I/O accessors 2010-07-12 00:14:29 -07:00
ax88796.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
ax88796.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
bcm6348-eth.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
bcm6368-eth.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
bcm-sf2-eth-gmac.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
bcm-sf2-eth-gmac.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
bcm-sf2-eth.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
bcm-sf2-eth.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
bcmgenet.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
calxedaxgmac.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
cs8900.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
cs8900.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
dc2114x.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
designware.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
designware.h common: Drop net.h from common header 2020-05-18 17:33:31 -04:00
dm9000x.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
dm9000x.h dm9000 remove dead external phy support, gpio fix 2008-08-26 23:08:19 -07:00
dnet.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
dnet.h dnet: driver for Dave DNET ethernet controller 2009-02-10 00:16:27 +01:00
dwc_eth_qos.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
dwmac_socfpga.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
e1000_spi.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
e1000.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
e1000.h command: Remove the cmd_tbl_t typedef 2020-05-18 18:36:55 -04:00
eepro100.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
ep93xx_eth.c common: Drop linux/bug.h from common header 2020-05-18 21:19:23 -04:00
ep93xx_eth.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
eth-phy-uclass.c net: Add eth phy generic driver for shared MDIO 2020-05-10 13:24:48 +02:00
ethoc.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
fec_mxc.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
fec_mxc.h fec: Move imx_get_mac_from_fuse declare to imx file 2020-05-10 20:55:20 +02:00
fsl_enetc_mdio.c drivers: net: fsl_enetc_mdio: return with time-out if HW is stuck 2019-12-09 09:47:43 -06:00
fsl_enetc.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
fsl_enetc.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
fsl_ls_mdio.c drivers: net: add Layerscape mEMAC MDIO driver 2020-04-29 10:49:20 +05:30
fsl_mcdmafec.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
fsl_mdio.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ftgmac100.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
ftgmac100.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
ftmac100.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
ftmac100.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ftmac110.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
ftmac110.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
gmac_rockchip.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
higmacv300.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
Kconfig rename symbol: CONFIG_KIRKWOOD -> CONFIG_ARCH_KIRKWOOD 2020-05-15 14:47:35 -04:00
ks8851_mll.c net: ks8851: Replace malloc()+memset() with calloc() 2020-05-22 19:46:45 +02:00
ks8851_mll.h net: ks8851_mll: add ethernet support 2013-06-24 19:11:14 -05:00
lan91c96.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
lan91c96.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
lpc32xx_eth.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
macb.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
macb.h net: macb: add support for faster clk rates 2019-07-25 13:13:30 -05:00
Makefile net: Add eth phy generic driver for shared MDIO 2020-05-10 13:24:48 +02:00
mcffec.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
mcfmii.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
mdio_mux_i2creg.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
mdio_mux_sandbox.c test: dm: add a test for MDIO MUX DM uclass 2019-07-18 16:37:13 -05:00
mdio_sandbox.c test: dm_mdio: avoid out of bounds access 2019-09-04 11:37:19 -05:00
mpc8xx_fec.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
mt7628-eth.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
mtk_eth.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
mtk_eth.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
mvgbe.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
mvgbe.h net: mvgbe: convert to DM 2018-07-26 14:08:21 -05:00
mvmdio.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
mvneta.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
mvpp2.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
natsemi.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
ne2000_base.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
ne2000_base.h common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
ne2000.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
ne2000.h NE2000: Fix regresssion introduced by e710185aae on non AX88796 2008-04-28 22:26:36 -07:00
netconsole.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
ns8382x.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
pch_gbe.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
pch_gbe.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pcnet.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
pic32_eth.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
pic32_eth.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
pic32_mdio.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
ravb.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
rtl8139.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
rtl8169.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
sandbox-raw-bus.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
sandbox-raw.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
sandbox.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
sh_eth.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
sh_eth.h net: sh_eth: Fix 64bit build warnings 2019-08-09 23:15:01 +02:00
smc911x.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
smc911x.h common: Drop net.h from common header 2020-05-18 17:33:31 -04:00
smc91111.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
smc91111.h common: Drop net.h from common header 2020-05-18 17:33:31 -04:00
sni_ave.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
sun8i_emac.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
sunxi_emac.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
tsec.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
uli526x.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
vsc7385.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
vsc9953.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
xilinx_axi_emac.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
xilinx_emaclite.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
zynq_gem.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00