diff options
author | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2017-02-12 11:56:42 +0000 |
---|---|---|
committer | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2017-02-12 11:56:42 +0000 |
commit | 8fa79650edfb6d1227033653a68a29d232c58f22 (patch) | |
tree | 7fe7116ce58d7d5c02dbdfbca0add63e38918b3a /sys | |
parent | 5766d3b58576dcb9bcc5a61eeb73661c6980d817 (diff) |
Remove incorrect if statement
Pointed out by jsg@ and Nathanael Rensen, <nathanael at
list ! polymorpheus ! com>, thanks!
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pv/xenstore.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/pv/xenstore.c b/sys/dev/pv/xenstore.c index 49b8a6cca24..6338400a4d7 100644 --- a/sys/dev/pv/xenstore.c +++ b/sys/dev/pv/xenstore.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xenstore.c,v 1.40 2017/02/07 11:52:07 mikeb Exp $ */ +/* $OpenBSD: xenstore.c,v 1.41 2017/02/12 11:56:41 mikeb Exp $ */ /* * Copyright (c) 2015 Mike Belopuhov @@ -1033,8 +1033,7 @@ xs_cmpprop(void *xsc, const char *path, const char *property, const char *value, if ((error = xs_cmd(&xst, XS_READ, key, &iovp, &iov_cnt)) != 0) return (error); - if (*result) - *result = strcmp(value, (char *)iovp->iov_base); + *result = strcmp(value, (char *)iovp->iov_base); xs_resfree(&xst, iovp, iov_cnt); |