4a2361df8f
Move check_zero_bytes into new bnxt_util.h file. Signed-off-by: Scott Branden <scott.branden@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
19 lines
297 B
C
19 lines
297 B
C
/* SPDX-License-Identifier: BSD-3-Clause
|
|
* Copyright(c) 2014-2018 Broadcom
|
|
* All rights reserved.
|
|
*/
|
|
|
|
#include <inttypes.h>
|
|
|
|
#include "bnxt_util.h"
|
|
|
|
int bnxt_check_zero_bytes(const uint8_t *bytes, int len)
|
|
{
|
|
int i;
|
|
|
|
for (i = 0; i < len; i++)
|
|
if (bytes[i] != 0x00)
|
|
return 0;
|
|
return 1;
|
|
}
|