Revert "chore(no-merge): test ci static checks"

This reverts commit 507154cf4adda260ff8b15b61791d3bf6e000a58.

Reason for revert: Accidental merge while testing gerrit permission

Change-Id: I3fc5870893ca19fca73fc73a9371e4cb2e020c6a
Signed-off-by: Govindraj Raja <govindraj.raja@arm.com>
diff --git a/.clang-format b/.clang-format
deleted file mode 100644
index b981667..0000000
--- a/.clang-format
+++ /dev/null
@@ -1,99 +0,0 @@
-# Copyright The Transfer List Library Contributors
-#
-# SPDX-License-Identifier: MIT OR GPL-2.0-or-later
----
-AccessModifierOffset: -4
-AlignAfterOpenBracket: Align
-AlignConsecutiveAssignments: false
-AlignConsecutiveDeclarations: false
-AlignEscapedNewlines: Left
-AlignOperands: true
-AlignTrailingComments: false
-AllowAllParametersOfDeclarationOnNextLine: false
-AllowShortBlocksOnASingleLine: false
-AllowShortCaseLabelsOnASingleLine: false
-AllowShortFunctionsOnASingleLine: None
-AllowShortIfStatementsOnASingleLine: false
-AllowShortLoopsOnASingleLine: false
-AlwaysBreakAfterDefinitionReturnType: None
-AlwaysBreakAfterReturnType: None
-AlwaysBreakBeforeMultilineStrings: false
-AlwaysBreakTemplateDeclarations: false
-BinPackArguments: true
-BinPackParameters: true
-BraceWrapping:
-  AfterClass: false
-  AfterControlStatement: false
-  AfterEnum: false
-  AfterFunction: true
-  AfterNamespace: true
-  AfterObjCDeclaration: false
-  AfterStruct: false
-  AfterUnion: false
-  AfterExternBlock: false
-  BeforeCatch: false
-  BeforeElse: false
-  IndentBraces: false
-  SplitEmptyFunction: true
-  SplitEmptyRecord: true
-  SplitEmptyNamespace: true
-BreakBeforeBinaryOperators: None
-BreakBeforeBraces: Custom
-BreakBeforeInheritanceComma: false
-BreakBeforeTernaryOperators: false
-BreakConstructorInitializersBeforeComma: false
-BreakConstructorInitializers: BeforeComma
-BreakAfterJavaFieldAnnotations: false
-BreakStringLiterals: false
-ColumnLimit: 80
-CommentPragmas: '^ IWYU pragma:'
-CompactNamespaces: false
-ConstructorInitializerAllOnOneLineOrOnePerLine: false
-ConstructorInitializerIndentWidth: 8
-ContinuationIndentWidth: 8
-Cpp11BracedListStyle: false
-DerivePointerAlignment: false
-DisableFormat: false
-ExperimentalAutoDetectBinPacking: false
-FixNamespaceComments: false
-
-IncludeIsMainRegex: '(Test)?$'
-IndentCaseLabels: false
-IndentGotoLabels: false
-IndentPPDirectives: None
-IndentWidth: 8
-IndentWrappedFunctionNames: false
-JavaScriptQuotes: Leave
-JavaScriptWrapImports: true
-KeepEmptyLinesAtTheStartOfBlocks: false
-MacroBlockBegin: ''
-MacroBlockEnd: ''
-MaxEmptyLinesToKeep: 1
-NamespaceIndentation: None
-ObjCBinPackProtocolList: Auto
-ObjCBlockIndentWidth: 8
-ObjCSpaceAfterProperty: true
-ObjCSpaceBeforeProtocolList: true
-
-PointerAlignment: Right
-ReflowComments: false
-SortIncludes: true
-SortUsingDeclarations: false
-SpaceAfterCStyleCast: false
-SpaceAfterTemplateKeyword: true
-SpaceBeforeAssignmentOperators: true
-SpaceBeforeCtorInitializerColon: true
-SpaceBeforeInheritanceColon: true
-SpaceBeforeParens: ControlStatementsExceptForEachMacros
-SpaceBeforeRangeBasedForLoopColon: true
-SpaceInEmptyParentheses: false
-SpacesBeforeTrailingComments: 1
-SpacesInAngles: false
-SpacesInContainerLiterals: false
-SpacesInCStyleCastParentheses: false
-SpacesInParentheses: false
-SpacesInSquareBrackets: false
-Standard: Cpp03
-TabWidth: 8
-UseTab: Always
-...
diff --git a/src/transfer_list.c b/src/transfer_list.c
index b6ecbd9..8b7d0d0 100644
--- a/src/transfer_list.c
+++ b/src/transfer_list.c
@@ -12,7 +12,8 @@
 #include <math_utils.h>
 #include <transfer_list.h>
 
-void transfer_list_dump(struct transfer_list_header *tl) {
+void transfer_list_dump(struct transfer_list_header *tl)
+{
 	struct transfer_list_entry *te = NULL;
 	int i = 0;
 
@@ -371,10 +372,11 @@
 					      uint32_t data_size,
 					      const void *data)
 {
-	uintptr_t tl_ev;
+	uintptr_t max_tl_ev, tl_ev, ev;
 	struct transfer_list_entry *te = NULL;
 	uint8_t *te_data = NULL;
 	uintptr_t te_end;
+	size_t sz = 0;
 
 	if (!tl || (tag_id & (1 << 24))) {
 		return NULL;