Skip to content

Fix cppcheck errors in 3rdparty/carotene lib #19524

@danbey

Description

@danbey

System information (version)
OpenCV => 4.5.1
Operating System / Platform => Ubuntu 18.10
Compiler => g++-8.4.0

Detailed description
Run cppcheck on 3rdparty carotene lib
found that we can reduce if statement as it has the same expression on both sides of '&&'

Steps to reproduce
run "cppcheck --enable=all --inconclusive --std=posix ./3rdparty/carotene/"

Issue submission checklist
  • I report the issue, it's not a question
  • I checked the problem with documentation, FAQ, open issues,
    forum.opencv.org, Stack Overflow, etc and have not found solution
  • I updated to latest OpenCV version and the issue is still there
  • There is reproducer code and related data files: videos, images, onnx, etc

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions