diff options
author | Patrick Wildt <patrick@cvs.openbsd.org> | 2020-08-22 12:24:27 +0000 |
---|---|---|
committer | Patrick Wildt <patrick@cvs.openbsd.org> | 2020-08-22 12:24:27 +0000 |
commit | 89374012fcfbc1a3acf187a8b9c374dd6193661f (patch) | |
tree | 52c2bffe00cbe2b7850464dbd46eb6938707cf47 /sys | |
parent | 87c80d01c567a379e7a0312effb1e6e2b33b44d2 (diff) |
Simplify check for return code.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/fdt/if_mvpp.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/dev/fdt/if_mvpp.c b/sys/dev/fdt/if_mvpp.c index 5ab38abe548..7ddc6ef687d 100644 --- a/sys/dev/fdt/if_mvpp.c +++ b/sys/dev/fdt/if_mvpp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_mvpp.c,v 1.19 2020/08/17 22:03:32 patrick Exp $ */ +/* $OpenBSD: if_mvpp.c,v 1.20 2020/08/22 12:24:26 patrick Exp $ */ /* * Copyright (c) 2008, 2019 Mark Kettenis <kettenis@openbsd.org> * Copyright (c) 2017, 2020 Patrick Wildt <patrick@blueri.se> @@ -3259,10 +3259,7 @@ mvpp2_prs_tcam_data_cmp(struct mvpp2_prs_entry *pe, int offset, uint16_t data) tcam_data = (pe->tcam.byte[byte_offset + 1] << 8) | pe->tcam.byte[byte_offset]; - if (tcam_data != data) - return 0; - - return 1; + return tcam_data == data; } void |