diff options
author | Mike Kelly <mike.kelly@arm.com> | 2021-11-03 11:12:45 +0000 |
---|---|---|
committer | mike.kelly <mike.kelly@arm.com> | 2021-11-04 12:22:24 +0000 |
commit | 1b46d132a3330692fcf9a603b21363a28f46ef03 (patch) | |
tree | c763d009cce0b13765b094c93741fb67d818defd /ConversionUtils_1_2.hpp | |
parent | f65b266b7bbabe29a694a1a753ae10b65301c1f1 (diff) | |
download | android-nn-driver-1b46d132a3330692fcf9a603b21363a28f46ef03.tar.gz |
IVGCVSW-6430 Clear up coverity issues
* Removed unreachable code
* break after if else where both branches return
* Removed unused operations
* Result of dstPtr++ is unused
* Fixed possible overflow
* Axis dimensionSequence assignment can result in overflow where rank
is not 4
* Removed use of old-style casts
* Fixed spelling mistakes in error messages
Signed-off-by: Mike Kelly <mike.kelly@arm.com>
Change-Id: If2a7ab63fc1d200cb18b494d99a67bbddb42f0f8
Diffstat (limited to 'ConversionUtils_1_2.hpp')
-rw-r--r-- | ConversionUtils_1_2.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ConversionUtils_1_2.hpp b/ConversionUtils_1_2.hpp index acf787f3..155fdf40 100644 --- a/ConversionUtils_1_2.hpp +++ b/ConversionUtils_1_2.hpp @@ -2396,7 +2396,7 @@ bool ConvertSpaceToDepth(const HalOperation& operation, const HalModel& model, C IConnectableLayer* const layer = data.m_Network->AddSpaceToDepthLayer(desc); if (!layer) { - return Fail("%s: Could not add the SpaceToDephLayer", __func__); + return Fail("%s: Could not add the SpaceToDepthLayer", __func__); } input.Connect(layer->GetInputSlot(0)); |