diff options
author | 2020-08-22 12:24:26 +0000 | |
---|---|---|
committer | 2020-08-22 12:24:26 +0000 | |
commit | 47d131ca48dfd7470184a4b24b22caf16f1666ae (patch) | |
tree | 04db982633242d9da6d52c87df4e855fd18fe628 | |
parent | Move sysctl(2) CTL_DEBUG from DEBUG to new DEBUG_SYSCTL (diff) | |
download | wireguard-openbsd-47d131ca48dfd7470184a4b24b22caf16f1666ae.tar.xz wireguard-openbsd-47d131ca48dfd7470184a4b24b22caf16f1666ae.zip |
Simplify check for return code.
-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 |