]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/pdk.git/commitdiff
PCIe: Fix for klocwork errors
authorM V Pratap Reddy <x0257344@ti.com>
Sun, 13 Feb 2022 10:30:07 +0000 (16:00 +0530)
committerM V Pratap Reddy <x0257344@ti.com>
Sun, 13 Feb 2022 16:33:38 +0000 (22:03 +0530)
packages/ti/drv/pcie/src/v2/pciev2.c

index 34b0c82357c72946b85a6af2fe8958d6d329eca4..199b954a4146d46e8c32c6df2cddaae2f7b2d506 100644 (file)
@@ -67,7 +67,7 @@ Pciev2_LocalObj pciev2LocalObj =
 static void pcie_set_mode (Pciev2_DevParams *devParams, uint32_t index, pcieMode_e mode); /*for misra warning*/
 static void pcie_set_mode (Pciev2_DevParams *devParams, uint32_t index, pcieMode_e mode)
 {
-  uint32_t get_value;
+  uint32_t get_value = 0;
   uint32_t regVal;
 
   switch (mode)