[scan-admin@coverity.com: New Defects reported by Coverity Scan for Das U-Boot]

Sadly, when we eliminate defects it doesn't say which ones in an email. -rc2 eliminated one defect and introduced these two new ones.
----- Forwarded message from scan-admin@coverity.com -----
Date: Mon, 09 Nov 2020 22:31:55 +0000 (UTC) From: scan-admin@coverity.com To: tom.rini@gmail.com Subject: New Defects reported by Coverity Scan for Das U-Boot
Hi,
Please find the latest report on new defect(s) introduced to Das U-Boot found with Coverity Scan.
2 new defect(s) introduced to Das U-Boot found with Coverity Scan. 1 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan.
New defect(s) Reported-by: Coverity Scan Showing 2 of 2 defect(s)
** CID 313047: Control flow issues (DEADCODE) /drivers/core/lists.c: 106 in bind_drivers_pass()
________________________________________________________________________________________________________ *** CID 313047: Control flow issues (DEADCODE) /drivers/core/lists.c: 106 in bind_drivers_pass() 100 dm_warn("No match for driver '%s'\n", entry->name); 101 if (!result || ret != -ENOENT) 102 result = ret; 103 } 104 } 105
CID 313047: Control flow issues (DEADCODE) Execution cannot reach the expression "-11" inside this statement: "return result ? result : (m...".
106 return result ? result : missing_parent ? -EAGAIN : 0; 107 } 108 109 int lists_bind_drivers(struct udevice *parent, bool pre_reloc_only) 110 { 111 int result = 0;
** CID 313046: Uninitialized variables (UNINIT) /test/dm/test-main.c: 202 in dm_test_main()
________________________________________________________________________________________________________ *** CID 313046: Uninitialized variables (UNINIT) /test/dm/test-main.c: 202 in dm_test_main() 196 */ 197 if (!(test->flags & UT_TESTF_LIVE_TREE) && 198 (!runs || dm_test_run_on_flattree(test))) { 199 ut_assertok(dm_do_test(uts, test, false)); 200 runs++; 201 }
CID 313046: Uninitialized variables (UNINIT) Using uninitialized value "found".
202 found++; 203 } 204 205 if (test_name && !found) 206 printf("Test '%s' not found\n", test_name); 207 else
________________________________________________________________________________________________________ To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0...
To manage Coverity Scan email notifications for "tom.rini@gmail.com", click https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0...
----- End forwarded message -----
participants (1)
-
Tom Rini