summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Barrett <apb@NetBSD.org>2015-08-06 14:44:41 +0200
committerThomas Klausner <wiz@NetBSD.org>2015-08-10 23:42:18 +0200
commit2b800da3192bd4cba756ba5f0ca53a623613469e (patch)
tree6d7b420ff3bc70ff4a0680ea34999f5ea65cd56b
parent0011cd2b25ea7f011630c42ad66e89f3891ea959 (diff)
Fix return value.
In XGI_GetTVPtrIndex2(), return the correct value through *tempch by using (*tempch)++ instead of *tempch++. Found using clang -Wunused-value. Signed-off-by: Thomas Klausner <wiz@NetBSD.org> Reviewed-by: Connor Behan <connor.behan@gmail.com>
-rwxr-xr-xsrc/vb_setmode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vb_setmode.c b/src/vb_setmode.c
index b0f64b1..bfcae8b 100755
--- a/src/vb_setmode.c
+++ b/src/vb_setmode.c
@@ -9502,7 +9502,7 @@ XGI_GetTVPtrIndex2(USHORT * tempbx, UCHAR * tempcl, UCHAR * tempch,
if (pVBInfo->
VBType & (VB_XGI301B | VB_XGI302B | VB_XGI301LV | VB_XGI302LV |
VB_XGI301C))
- *tempch++;
+ (*tempch)++;
}