sn_bits: use board_id_is_blank
Use the standard board_id_is_blank function to check if the board id is
blank.
BRANCH=cr50
TEST=set the serialnumber
@@ -155,7 +155,7 @@ static enum vendor_cmd_rc vc_sn_set_hash(enum vendor_cmd_cc code,
* that the board ID has not been writen yet.
*/
if (read_board_id(&bid) != EC_SUCCESS ||
- ~(bid.type & bid.type_inv & bid.flags) != 0) {
+ !board_id_is_blank(&bid)) {
*pbuf = EC_ERROR_ACCESS_DENIED;
return VENDOR_RC_NOT_ALLOWED;
}
