Misc fixes found by cppcheck

Submitted by Rikard Falkeborn on April 28, 2019, 6:22 p.m.

Details

Reviewer None
Submitted April 28, 2019, 6:22 p.m.
Last Updated April 29, 2019, 6:27 a.m.
Revision 1

Cover Letter

Various fixes found by cppcheck. Each patch can be applied individually.

Rikard Falkeborn (7):
  compel/s390: Fix memset sizeof
  compel/s390: Fix return value in error path
  test/zdtm: Move assignment after return value check
  test: remove unused variables
  files-reg: Remove redundant inner if
  test: add missing va_end
  test/bers: Fix sizeof to memset

 compel/arch/s390/src/lib/infect.c |  8 +++-----
 criu/files-reg.c                  | 10 ++++------
 test/others/bers/bers.c           |  6 ++----
 test/others/libcriu/test_errno.c  |  2 +-
 test/zdtm/lib/ns.c                |  2 +-
 test/zdtm/static/autofs.c         |  1 +
 6 files changed, 12 insertions(+), 17 deletions(-)
  

Revisions