test_static_idt: fix uninitialized variable
Coverity complains about an easy-to-fix uninitialized variable. Change-Id: I04bf670c7137df25165d4e37f2f7df2d4004c478 Coverity-ID: 152050 Signed-off-by: Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com>
This commit is contained in:
parent
03940d4c6a
commit
c7e7089c36
1 changed files with 1 additions and 0 deletions
|
@ -195,6 +195,7 @@ void idtTestTask(void)
|
|||
* Use excHandlerExecuted instead of 0 to prevent the compiler issuing a
|
||||
* 'divide by zero' warning.
|
||||
*/
|
||||
error = 32; /* avoid static checker uninitialized warnings */
|
||||
error = error / excHandlerExecuted;
|
||||
|
||||
if (excHandlerExecuted == 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue