File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -289,22 +289,22 @@ void CRYPTO_IRQHandler()
289
289
{
290
290
uint32_t intsts ;
291
291
292
- if ((intsts = PRNG_GET_INT_FLAG ())) {
292
+ if ((intsts = PRNG_GET_INT_FLAG ()) != 0 ) {
293
293
/* Done with OK */
294
294
crypto_prng_done |= CRYPTO_DONE_OK ;
295
295
/* Clear interrupt flag */
296
296
PRNG_CLR_INT_FLAG ();
297
- } else if ((intsts = AES_GET_INT_FLAG ())) {
297
+ } else if ((intsts = AES_GET_INT_FLAG ()) != 0 ) {
298
298
/* Done with OK */
299
299
crypto_aes_done |= CRYPTO_DONE_OK ;
300
300
/* Clear interrupt flag */
301
301
AES_CLR_INT_FLAG ();
302
- } else if ((intsts = TDES_GET_INT_FLAG ())) {
302
+ } else if ((intsts = TDES_GET_INT_FLAG ()) != 0 ) {
303
303
/* Done with OK */
304
304
crypto_des_done |= CRYPTO_DONE_OK ;
305
305
/* Clear interrupt flag */
306
306
TDES_CLR_INT_FLAG ();
307
- } else if ((intsts = ECC_GET_INT_FLAG ())) {
307
+ } else if ((intsts = ECC_GET_INT_FLAG ()) != 0 ) {
308
308
/* Check interrupt flags */
309
309
if (intsts & CRPT_INTSTS_ECCIF_Msk ) {
310
310
/* Done with OK */
Original file line number Diff line number Diff line change @@ -256,17 +256,17 @@ void CRYPTO_IRQHandler()
256
256
{
257
257
uint32_t intsts ;
258
258
259
- if ((intsts = PRNG_GET_INT_FLAG ())) {
259
+ if ((intsts = PRNG_GET_INT_FLAG ()) != 0 ) {
260
260
/* Done with OK */
261
261
crypto_prng_done |= CRYPTO_DONE_OK ;
262
262
/* Clear interrupt flag */
263
263
PRNG_CLR_INT_FLAG ();
264
- } else if ((intsts = AES_GET_INT_FLAG ())) {
264
+ } else if ((intsts = AES_GET_INT_FLAG ()) != 0 ) {
265
265
/* Done with OK */
266
266
crypto_aes_done |= CRYPTO_DONE_OK ;
267
267
/* Clear interrupt flag */
268
268
AES_CLR_INT_FLAG ();
269
- } else if ((intsts = TDES_GET_INT_FLAG ())) {
269
+ } else if ((intsts = TDES_GET_INT_FLAG ()) != 0 ) {
270
270
/* Done with OK */
271
271
crypto_des_done |= CRYPTO_DONE_OK ;
272
272
/* Clear interrupt flag */
You can’t perform that action at this time.
0 commit comments