Browse Source

Merge "coverity: debugfs devfip remove comparisons to LONG_MAX" into integration

pull/1938/head
Soby Mathew 5 years ago
committed by TrustedFirmware Code Review
parent
commit
44e3424e34
  1. 6
      lib/debugfs/devfip.c

6
lib/debugfs/devfip.c

@ -1,5 +1,5 @@
/*
* Copyright (c) 2019, Arm Limited. All rights reserved.
* Copyright (c) 2019-2020, Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
@ -103,10 +103,6 @@ static int get_entry(chan_t *c, struct fip_entry *entry)
return -1;
}
if ((entry->size > LONG_MAX) || (entry->offset_address > LONG_MAX)) {
return -1;
}
if (entry->size == 0) {
return 0;
}

Loading…
Cancel
Save