Commit e44dc724 authored by dingsenjie's avatar dingsenjie Committed by David S. Miller

ethernet: marvell/octeontx2: Simplify the return expression of npc_is_same

Simplify the return expression in the rvu_npc_fs.c
Signed-off-by: default avatardingsenjie <dingsenjie@yulong.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9fd2bc32
......@@ -123,11 +123,8 @@ static bool npc_is_field_present(struct rvu *rvu, enum key_fields type, u8 intf)
static bool npc_is_same(struct npc_key_field *input,
struct npc_key_field *field)
{
int ret;
ret = memcmp(&input->layer_mdata, &field->layer_mdata,
sizeof(struct npc_layer_mdata));
return ret == 0;
return memcmp(&input->layer_mdata, &field->layer_mdata,
sizeof(struct npc_layer_mdata)) == 0;
}
static void npc_set_layer_mdata(struct npc_mcam *mcam, enum key_fields type,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment