treewide: fix coccinelle checks
authorRosen Penev <[email protected]>
Sun, 3 Nov 2024 22:11:30 +0000 (14:11 -0800)
committerHauke Mehrtens <[email protected]>
Tue, 2 Dec 2025 22:32:42 +0000 (23:32 +0100)
commit4ffd5aa239c1b54822830a0772eefcd3718e0076
tree8002d4fce964ab0c488dc230c5c9f1c4f4513264
parent55b5e44673d1e3e624602e462d855d1b8fde9a51
treewide: fix coccinelle checks

Unneeded semicolon

WARNING comparing pointer to 0

WARNING: NULL check before some freeing functions is not needed.

WARNING: casting value returned by memory allocation function to (u32 *)

ERROR: allocation function on line 378 returns NULL not ERR_PTR on failure

Signed-off-by: Rosen Penev <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/19932
Signed-off-by: Hauke Mehrtens <[email protected]>
42 files changed:
package/kernel/lantiq/ltq-adsl-mei/src/drv_mei_cpe.c
package/kernel/lantiq/ltq-adsl-mei/src/ifxmips_mei_interface.h
package/kernel/lantiq/ltq-atm/src/ifxmips_atm_amazon_se.c
package/kernel/lantiq/ltq-atm/src/ifxmips_atm_ar9.c
package/kernel/lantiq/ltq-atm/src/ifxmips_atm_danube.c
package/kernel/lantiq/ltq-atm/src/ifxmips_atm_vr9.c
package/kernel/lantiq/ltq-atm/src/ltq_atm.c
package/kernel/lantiq/ltq-deu/src/ifxmips_aes.c
package/kernel/lantiq/ltq-deu/src/ifxmips_async_aes.c
package/kernel/lantiq/ltq-deu/src/ifxmips_async_des.c
package/kernel/lantiq/ltq-deu/src/ifxmips_des.c
package/kernel/lantiq/ltq-deu/src/ifxmips_deu_ar9.h
package/kernel/lantiq/ltq-deu/src/ifxmips_deu_danube.h
package/kernel/lantiq/ltq-deu/src/ifxmips_deu_vr9.h
package/kernel/lantiq/ltq-deu/src/ifxmips_md5.c
package/kernel/lantiq/ltq-deu/src/ifxmips_md5_hmac.c
package/kernel/lantiq/ltq-deu/src/ifxmips_sha1.c
package/kernel/lantiq/ltq-deu/src/ifxmips_sha1_hmac.c
package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_adsl.c
package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_amazon_se.c
package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_ar9.c
package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_danube.c
package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_vr9.c
package/kernel/rtc-rv5c386a/src/rtc.c
target/linux/at91/image/dfboot/src/com.c
target/linux/at91/image/dfboot/src/dataflash.c
target/linux/ath79/files/drivers/mtd/nand/raw/ar934x_nand.c
target/linux/bcm47xx/image/lzma-loader/src/LzmaDecode.c
target/linux/generic/files/drivers/mtd/nand/mtk_bmt.c
target/linux/generic/files/drivers/mtd/nand/mtk_bmt_nmbm.c
target/linux/generic/files/drivers/net/phy/b53/b53_common.c
target/linux/generic/files/drivers/net/phy/rtl8367b.c
target/linux/generic/files/drivers/platform/mikrotik/rb_hardconfig.c
target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367c/i2c.c
target/linux/mediatek/files/drivers/net/phy/rtk/rtl8367c/rtl8367c_asicdrv_qos.c
target/linux/ramips/files/drivers/net/ethernet/ralink/esw_rt3050.c
target/linux/ramips/files/drivers/net/ethernet/ralink/gsw_mt7620.c
target/linux/ramips/files/drivers/net/ethernet/ralink/mdio.c
target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_eth_soc.c
target/linux/realtek/files-6.12/drivers/clk/realtek/clk-rtl83xx.c
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/common.c
target/linux/realtek/files-6.12/drivers/net/ethernet/rtl838x_eth.c