Skip to content

cppcheck cleanup

Wolfgang Denk u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9cppcheck cleanup: fix nullPointer errorsarch/arm/cpu/arm926ejs/mxs/mxs.c arch/arm/cpu/arm926ejs/mxs/spl_boot.c arch/arm/cpu/armv7/zynq/ddrc.c +6 more+17 -21 reply
2/9board/cogent/lcd.c: fix syntax errorboard/cogent/lcd.c+1 -11 reply
3/9drivers/usb/host/isp116x-hcd.c: fix syntax errordrivers/usb/host/isp116x-hcd.c+1 -11 reply
4/9drivers/net/uli526x.c: fix syntax errordrivers/net/uli526x.c+1 -11 reply
5/9common/cmd_fitupd.c: restore corrupted filecommon/cmd_fitupd.c+5 -91 reply
6/9board/matrix_vision/mvblx/sys_eeprom.c: fix buffer overflowboard/matrix_vision/mvblx/sys_eeprom.c+1 -12 replies
7/9board/renesas/ecovec/ecovec.c: fix buffer overflowboard/renesas/ecovec/ecovec.c+1 -11 reply
8/9ARM: MXS: fix Uninitialized variable errorarch/arm/cpu/arm926ejs/mxs/timer.c+2 -01 reply
9/9board/esd/common/auto_update.c: fix Uninitialized variableboard/esd/common/auto_update.c+1 -22 replies

Reviews trailers per patch

2 of 9 patches have a Reviewed-by or Acked-by.

PatchMatthias FuchsMichael Jones
1/9
2/9
3/9
4/9
5/9
6/9A-b
7/9
8/9
9/9A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [U-Boot] [PATCH 0/9] cppcheck cleanup

The following patches clean up a number of errors and warnings detected by running the "cppcheck" [1] tool over the U-Boot source tree. This discovers a number of issues that escape GCC, for example because they are inside #ifdef branches which are never compiled for any of the tested configurations.

This is just an initial patch series; some other error reports have been sent to the respective code maintainers, so more patches should follow soon.

The command used for these tests was:

	$ cd u-boot
	$ cppcheck --force --quiet --inline-suppr .

[1] http://cppcheck.sourceforge.net/

Wolfgang Denk (9):
cppcheck cleanup: fix nullPointer errors board/cogent/lcd.c: fix syntax error drivers/usb/host/isp116x-hcd.c: fix syntax error drivers/net/uli526x.c: fix syntax error common/cmd_fitupd.c: restore corrupted file board/matrix_vision/mvblx/sys_eeprom.c: fix buffer overflow board/renesas/ecovec/ecovec.c: fix buffer overflow
ARM: MXS: fix Uninitialized variable error board/esd/common/auto_update.c: fix Uninitialized variable

 arch/arm/cpu/arm926ejs/mxs/mxs.c          |  2 ++
 arch/arm/cpu/arm926ejs/mxs/spl_boot.c     |  2 ++
 arch/arm/cpu/arm926ejs/mxs/timer.c        |  2 ++
 arch/arm/cpu/armv7/zynq/ddrc.c            |  1 +
 arch/blackfin/cpu/initcode.c              |  1 +
 arch/powerpc/cpu/mpc85xx/cpu_init_early.c |  5 ++++-
 arch/sh/lib/zimageboot.c                  |  1 +
 board/cogent/lcd.c                        |  2 +-
 board/esd/common/auto_update.c            |  3 +--
 board/esd/pci405/cmd_pci405.c             |  4 +++-
 board/keymile/common/common.c             |  1 +
 board/matrix_vision/mvblx/sys_eeprom.c    |  2 +-
 board/renesas/ecovec/ecovec.c             |  2 +-
 board/scb9328/flash.c                     |  2 ++
 common/cmd_fitupd.c                       | 14 +++++---------
 drivers/net/uli526x.c                     |  2 +-
 drivers/usb/host/isp116x-hcd.c            |  2 +-
 17 files changed, 30 insertions(+), 18 deletions(-)
Signature · 1 line
1.8.3.1