From ffc267f0803a8b8c51aa5877d7f7a66aa89bbe4e Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Fri, 12 Jul 2013 18:51:04 +0000 Subject: Actually assign return value to the variable that's used to check it. Pointed out by Maxime Villard. --- sys/arch/sparc64/dev/vdsp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/arch/sparc64/dev/vdsp.c b/sys/arch/sparc64/dev/vdsp.c index 11a00be9ffc..4bb8201bd18 100644 --- a/sys/arch/sparc64/dev/vdsp.c +++ b/sys/arch/sparc64/dev/vdsp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vdsp.c,v 1.18 2012/12/08 20:38:10 kettenis Exp $ */ +/* $OpenBSD: vdsp.c,v 1.19 2013/07/12 18:51:03 kettenis Exp $ */ /* * Copyright (c) 2009, 2011 Mark Kettenis * @@ -380,7 +380,7 @@ vdsp_tx_intr(void *arg) uint64_t tx_head, tx_tail, tx_state; int err; - hv_ldc_tx_get_state(lc->lc_id, &tx_head, &tx_tail, &tx_state); + err = hv_ldc_tx_get_state(lc->lc_id, &tx_head, &tx_tail, &tx_state); if (err != H_EOK) { printf("hv_ldc_rx_get_state %d\n", err); return (0); -- cgit v1.2.3